Project

General

Profile

Defect #3072 ยป yh.patch

Yuval Hager, 2009-04-06 10:24

View differences:

lib/redcloth3.rb (working copy)
1168 1168
        end
1169 1169
    end
1170 1170
    
1171
    ALLOWED_TAGS = %w(redpre pre code notextile)
1171
    ALLOWED_TAGS = %w(redpre pre code notextile div)
1172 1172
    
1173 1173
    def escape_html_tags(text)
1174 1174
      text.gsub!(%r{<(\/?([!\w]+)[^<>\n]*)(>?)}) {|m| ALLOWED_TAGS.include?($2) ? "<#{$1}#{$3}" : "&lt;#{$1}#{'&gt;' unless $3.blank?}" }
    (1-1/1)