Do not encode single/double quotes as entities

By encoding single/double quotes we can potentially break input, so lets
stop doing this. This now ensures that this:

    <foo>a"b</foo>

Is actually serialized back into the exact same instead of being
serialized into:

    <foo>a&quot;b</foo>
This commit is contained in:
Yorick Peterse committed 2015-05-21 11:23:44 +02:00
1 parent 098cd51ab7
commit c97c1b6899
2 files changed
+4 -6

No files matched your search

-2
View File
@@ -28,8 +28,6 @@ module Oga
#
ENCODE_MAPPING = {
'&' => '&amp;',
'"' => '&quot;',
"'" => '&apos;',
'>' => '&gt;',
'<' => '&lt;',
}