File: libxml2_workarounds.rb

package info (click to toggle)
ruby-loofah 2.0.3-2%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 500 kB
  • sloc: ruby: 1,972; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 235 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
require 'set'
module Loofah
  module LibxmlWorkarounds
    BROKEN_ESCAPING_ATTRIBUTES = Set.new %w[
        href
        action
        src
        name
      ]
    BROKEN_ESCAPING_ATTRIBUTES_QUALIFYING_TAG = {"name" => "a"}
  end
end