diff --git a/lib/oga/xml/entities.rb b/lib/oga/xml/entities.rb index 66a5615..eaea9d6 100644 --- a/lib/oga/xml/entities.rb +++ b/lib/oga/xml/entities.rb @@ -28,8 +28,6 @@ module Oga # ENCODE_MAPPING = { '&' => '&', - '"' => '"', - "'" => ''', '>' => '>', '<' => '<', } diff --git a/spec/oga/xml/entities_spec.rb b/spec/oga/xml/entities_spec.rb index 11161a1..f3bdb39 100644 --- a/spec/oga/xml/entities_spec.rb +++ b/spec/oga/xml/entities_spec.rb @@ -80,12 +80,12 @@ describe Oga::XML::Entities do described_class.encode('&').should == '&' end - it 'encodes " as "' do - described_class.encode('"').should == '"' + it 'does not encode double quotes' do + described_class.encode('"').should == '"' end - it "encodes ' as '" do - described_class.encode("'").should == ''' + it 'does not encode single quotes' do + described_class.encode("'").should == "'" end it 'encodes < as <' do