Closed msftrncs closed 5 years ago
How was that generated? The plist format does not require characters like quotes be converted to SGML entities. Only the <
and >
symbols need to be converted to <
and >
. That said, I do not know if using entities elsewhere would actually break anything... What happens if you convert it back using the build script?
@omniomi , I wrote a function to convert the JSON tmLanguage file, and used [System.Security.SecurityElement]::Escape()
which just escapes all 5 characters. However, according to StackOverflow and to w3.org that's not exactly what should be done, depending on were the contents are going, as there are some places they are not to be escaped. Even >
doesn't need to be escaped in the character data. (Kinda like the rules for regex character class groups)
I've noticed when generating the tmLanguage file programmatically, that I end up with more characters escaped, namely
"
and'
, than are escaped in the file in the repository. I couldn't seem to find any guidance on this.repository
programmatically generated
Any guidance here?