如何使用PHP或smarty将其转换为可读字符串?
(一定很容易,因为我看到这个编辑器不做任何事情就将其转换为可读字符串)
标题中的示例来自以下字符串:
Wer ist am Wochenende alles an der "Määs" anzutreffen?
字符串正下方写在右边:
Wer ist am Wochenende alles an der "Määs" anzutreffen?
我在尝试包含Facebook RSS提要时遇到了这个问题。如果您想要更多这些字符串,还有更多这些字符串,我们在这里:
http://www.facebook.com/feeds/page.php?format=atom10&id=113971395284126
实际上,看起来有了这个,你需要htmlspecialchars_decode()
而不是html_entity_decode()
;
使用htmlspecialchars_decode()得到"Määs",使用html_entity_decode()得到"Määs"。
尝试html_entity_decode()
将其更改为可读字符串。