diff --git a/lib/jekyll-seo-tag.rb b/lib/jekyll-seo-tag.rb index 9f6313f..2575fc4 100644 --- a/lib/jekyll-seo-tag.rb +++ b/lib/jekyll-seo-tag.rb @@ -3,19 +3,10 @@ module Jekyll attr_accessor :context - HTML_ESCAPE = { - "\u201c".freeze => '“'.freeze, - "\u201d".freeze => '”'.freeze - } - HTML_ESCAPE_REGEX = Regexp.union(HTML_ESCAPE.keys).freeze - def render(context) @context = context output = template.render!(payload, info) - # Encode smart quotes. See https://github.com/benbalter/jekyll-seo-tag/pull/6 - output.gsub!(HTML_ESCAPE_REGEX, HTML_ESCAPE) - output end diff --git a/spec/jekyll_seo_tag_spec.rb b/spec/jekyll_seo_tag_spec.rb index 9e98db0..bbc83cb 100644 --- a/spec/jekyll_seo_tag_spec.rb +++ b/spec/jekyll_seo_tag_spec.rb @@ -32,19 +32,6 @@ describe Jekyll::SeoTag do expect(subject.render(context)).to match(/