Sha256: 31e4cb26ef8e59fa8982d230e8345d9f43d31ed72c409373108ff9f5d3d10952

Contents?: true

Size: 351 Bytes

Versions: 12

Compression:

Stored size: 351 Bytes

Contents

module CiteProc
  module Ruby
    module Formats

      class Text < Format

        private

        def finalize!
          super
          output.gsub!(/&(amp|lt|gt);/i, {
            '&amp;' => '&',
            '&gt;'  => '>',
            '&lt;'  => '<'
          })
        end

      end

      class Debug < Format
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
citeproc-ruby-1.1.4 lib/citeproc/ruby/formats/default.rb
citeproc-ruby-1.1.3 lib/citeproc/ruby/formats/default.rb
citeproc-ruby-1.1.2 lib/citeproc/ruby/formats/default.rb
citeproc-ruby-1.1.1 lib/citeproc/ruby/formats/default.rb
citeproc-ruby-1.1.0 lib/citeproc/ruby/formats/default.rb
citeproc-ruby-1.0.6 lib/citeproc/ruby/formats/default.rb
citeproc-ruby-1.0.5 lib/citeproc/ruby/formats/default.rb
citeproc-ruby-1.0.4 lib/citeproc/ruby/formats/default.rb
citeproc-ruby-1.0.3 lib/citeproc/ruby/formats/default.rb
citeproc-ruby-1.0.2 lib/citeproc/ruby/formats/default.rb
citeproc-ruby-1.0.1 lib/citeproc/ruby/formats/default.rb
citeproc-ruby-1.0.0 lib/citeproc/ruby/formats/default.rb