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

Viewed 9087

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

1 Answers

AttributeEncode converts only a handful of characters:

  • "
  • &
  • <
  • \

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

Related