开发者

How to encode data for showing xml in php?

开发者 https://www.devze.com 2023-03-22 05:35 出处:网络
I am generating XML开发者_开发百科 dynamically. There may be arbitrary data which is entered by users. Which characters do I have to encode in order to show them properly in the XML file?

I am generating XML开发者_开发百科 dynamically. There may be arbitrary data which is entered by users. Which characters do I have to encode in order to show them properly in the XML file?

I am using PHP.


htmlspecialchars($string, ENT_QUOTES);
0

精彩评论

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