![]()
The input string with invalid characters replaced.
Use this method to replace invalid characters in a string before using the string in a System.Security.SecurityElement. If invalid characters are used in a System.Security.SecurityElement without being escaped, an ArgumentException is thrown.
The following table shows the invalid XML characters and their escaped equivalents.
"<" |
"<" |
">" |
">" |
"\"" |
""" |
"\'" |
"'" |
"&" |
"&" |