What is the difference between html.AttributeEncode vs html.Encode?

What is the difference between html.AttributeEncode vs html.Encode?

AttributeEncode converts only a handful of characters:

  • "
  • &
  • <
  • \

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

 

posted @ 2021-09-03 13:41  ChuckLu  阅读(77)  评论(0)    收藏  举报