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\'
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?
&