summaryrefslogtreecommitdiff
path: root/enc
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-06-02 17:35:00 (GMT)
committerJeremy Evans <code@jeremyevans.net>2020-07-10 16:34:08 (GMT)
commitddd9704ae9bf884d867b6f57a16c095a79393fff (patch)
tree6d4934a98933cd56111d4c17f0c19cff3c4b85ee /enc
parent82489f02429c14f945dbef787308d13adfa0018d (diff)
Encode ' as &apos; when using encode(xml: :attr)
Fixes [Bug #16922]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3177
Diffstat (limited to 'enc')
-rw-r--r--enc/trans/escape.trans3
1 files changed, 2 insertions, 1 deletions
diff --git a/enc/trans/escape.trans b/enc/trans/escape.trans
index c76ffa0..36d9dd0 100644
--- a/enc/trans/escape.trans
+++ b/enc/trans/escape.trans
@@ -18,9 +18,10 @@
], nil)
transcode_tblgen("", "xml_attr_content_escape", [
- ["{00-21,23-25,27-3B,3D,3F-FF}", :nomap],
+ ["{00-21,23-25,28-3B,3D,3F-FF}", :nomap],
["22", hexstr("&quot;")],
["26", hexstr("&amp;")],
+ ["27", hexstr("&apos;")],
["3C", hexstr("&lt;")],
["3E", hexstr("&gt;")]
], nil)