开发者

What is HTML Entity '
'?

I'm generating an XML Document object via the DOMDocument class. In the process, some kind of whitespace within elements is being converted into 
. It's pretty difficult to search for this one sin开发者_运维问答ce search engines treat this character as whitespace.

How do I scrub this character out of my xml output, or at least replace it with a different, preferable whitespace character?

Thanks.


ASCII code 13 corresponds to a carriage return (in PHP, it's "\r").


You scrub this character out of your output by not putting it there in the first place. Look for the code that puts the carriage return in your XML, and delete it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜