Do not html escape ' with '
reason: the named character reference ' (the apostrophe, U+0027) was introduced in XML 1.0 but does not appear in HTML. Authors should therefore use ' instead of ' to work as expected in HTML 4 user agents.
This commit is contained in:
@@ -61,7 +61,11 @@ feature -- Encoder
|
|||||||
Result.extend (c)
|
Result.extend (c)
|
||||||
when '%"' then Result.append_string (""")
|
when '%"' then Result.append_string (""")
|
||||||
when '&' then Result.append_string ("&")
|
when '&' then Result.append_string ("&")
|
||||||
when '%'' then Result.append_string ("'")
|
when '%'' then Result.append_string ("'")
|
||||||
|
-- The named character reference ' (the apostrophe, U+0027)
|
||||||
|
-- was introduced in XML 1.0 but does not appear in HTML.
|
||||||
|
-- Authors should therefore use ' instead of '
|
||||||
|
-- to work as expected in HTML 4 user agents.
|
||||||
when '<' then Result.append_string ("<")
|
when '<' then Result.append_string ("<")
|
||||||
when '>' then Result.append_string (">")
|
when '>' then Result.append_string (">")
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user