AttributeEncode converts only a handful of characters:

  • "
  • &
  • <
  • \

Encode does a full HtmlEncode, encoding any characters that aren't in Html.

 

相关文章: