Is It Necessary To Html Encode Right Angle Brackets?
I'm adding some meta description data to my header like so: HtmlMeta meta = new HtmlMeta(); meta.Name = 'description'; meta.Content = description; // this is unencoded page.Header.
Solution 1:
According to the XML specification >
is indeed valid for attributes. Only <
, &
and "
or '
need escaping.
[10] AttValue ::= '"' ([^<&"] | Reference)* '"'
| "'" ([^<&'] | Reference)* "'"
Post a Comment for "Is It Necessary To Html Encode Right Angle Brackets?"