Skip to content

Commit

Permalink
Do not html escape ' with '
Browse files Browse the repository at this point in the history
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 &EiffelWebFramework#39; instead of ' to work as expected in HTML 4 user agents.
  • Loading branch information
jocelyn committed Jan 20, 2016
1 parent d982bc0 commit 55ab696
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion library/text/encoder/src/html_encoder.e
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ feature -- Encoder
Result.extend (c)
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 ("&lt;")
when '>' then Result.append_string ("&gt;")
else
Expand Down

0 comments on commit 55ab696

Please sign in to comment.