SyntaxFix
Write A Post
Hire A Developer
Questions
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?
&