tags:

views:

122

answers:

1

Hi, what is the difference between those two?

+3  A: 

AttributeEncode converts only a handful of characters:

  • "
  • &
  • <
  • >

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

Nick Craver