©
このドキュメントでは、 php中国語ネットマニュアル リリース
[#1] lingtalfi [2015-10-08 20:35:45]
The single quote predefined entity is not escaped.
The other predefined entities are but not the single quote, so you will have to do it yourself.
That's what you would expect:
Ampersand & &
Single Quote ' '
Double Quote " "
Greater Than > >
Less Than < <
That's what you get with \XmlWriter:
Ampersand & &
Single Quote ' '
Double Quote " "
Greater Than > >
Less Than < <
[#2] Alexey Zakhlestin [2008-06-09 03:47:09]
important: XMLWriter expects UTF-8 data from you. It can output xml in various encodings, but input should be strictly utf-8!