diff options
Diffstat (limited to 'enc')
-rw-r--r-- | enc/trans/escape.trans | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/enc/trans/escape.trans b/enc/trans/escape.trans index 95977bde61..cc1513724b 100644 --- a/enc/trans/escape.trans +++ b/enc/trans/escape.trans @@ -1,28 +1,28 @@ #include "transcode_data.h" <% - def str1(str) + def hexstr(str) str.unpack("H*")[0] end transcode_tblgen("", "amp-escaped", [ ["{00-25,27-FF}", :nomap], - ["26", str1("&")] + ["26", hexstr("&")] ]) transcode_tblgen("", "xml-text-escaped", [ ["{00-25,27-3B,3D,3F-FF}", :nomap], - ["26", str1("&")], - ["3C", str1("<")], - ["3E", str1(">")] + ["26", hexstr("&")], + ["3C", hexstr("<")], + ["3E", hexstr(">")] ]) transcode_tblgen("", "xml-attr-content-escaped", [ ["{00-21,23-25,27-3B,3D,3F-FF}", :nomap], - ["22", str1(""")], - ["26", str1("&")], - ["3C", str1("<")], - ["3E", str1(">")] + ["22", hexstr(""")], + ["26", hexstr("&")], + ["3C", hexstr("<")], + ["3E", hexstr(">")] ]) map_xml_attr_quote = {} |