' is in XML, in HTML use '

I just got hit by a very confusing "by design" behavior and it took me a while to figure out what’s going on. Here is the line of code: text = System.Security.SecurityElement.Escape(text); This method replaces invalid XML characters in a string with their valid XML equivalent. The problem that I had is that when escaping … Continue reading ' is in XML, in HTML use '