AttributeEncode converts only a handful of characters:
- "
- &
- <
- \
Encode does a full HtmlEncode, encoding any characters that aren‘t in Html.
AttributeEncode converts only a handful of characters:
Encode does a full HtmlEncode, encoding any characters that aren‘t in Html.
What is the difference between html.AttributeEncode vs html.Encode?
原文:https://www.cnblogs.com/chucklu/p/15222747.html