开发者

PHP function to encode & etc. characters to corresponding HTML entities

Does anybody know of a PHP function to encode strings containing special characters like & etc. to strings containing corresponding HTML entities?

The p开发者_运维问答urpose is to display string data on a webpage without causing XML parsing errors.


htmlentities() and htmlspecialchars()


please see htmlentities function.

Cheers

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜