lib/citeproc/ruby/formats/html.rb in citeproc-ruby-1.1.5 vs lib/citeproc/ruby/formats/html.rb in citeproc-ruby-1.1.6

- old
+ new

@@ -135,10 +135,10 @@ def finalize_content! super output.replace content_tag(config[:container], output, 'style' => css) if @css end - def setup! + def finalize! # TODO find a better solution for this (strip tags?) # For now make sure not to double encode entities # by matching spaces before or after. output.gsub!(/[&<]\s/, '& ' => '&amp; ', '< ' => '&lt; ')