Uses for the '"' entity in HTML

后端 未结 5 626
星月不相逢
星月不相逢 2020-12-02 13:00

I am revising some XHTML files authored by another party. As part of this effort, I am doing some bulk editing via Linq to XML.

I\'

5条回答
  •  再見小時候
    2020-12-02 13:48

    It is likely because they used a single function for escaping attributes and text nodes. & doesn't do any harm so why complicate your code and make it more error-prone by having two escaping functions and having to pick between them?

提交回复
热议问题