什么是HTML实体
'? [英] What is HTML Entity '
'?
本文介绍了什么是HTML实体
'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我通过DOMDocument类生成一个XML Document对象。在这个过程中,元素中的某种空白被转换为
。由于搜索引擎将这个字符视为空白,因此搜索这个很难。
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 since search engines treat this character as whitespace.
如何从xml输出中清除此字符,或者至少将其替换为一个不同的,更好的空白字符?
How do I scrub this character out of my xml output, or at least replace it with a different, preferable whitespace character?
谢谢。
Thanks.
推荐答案
ASCII代码13对应于一个回车(在PHP中,它是\r
)。
ASCII code 13 corresponds to a carriage return (in PHP, it's "\r"
).
这篇关于什么是HTML实体
'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文