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

前端 未结 1 1283
执念已碎
执念已碎 2021-02-18 19:26

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

1条回答
  •  误落风尘
    2021-02-18 20:24

    AttributeEncode converts only a handful of characters:

    • "
    • &
    • <
    • \

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

    0 讨论(0)
提交回复
热议问题