Project

General

Profile

« Previous | Next » 

Revision 1517

Fixed: notextile tag has no effect.

View differences:

redcloth.rb
1149 1149
        end
1150 1150
    end
1151 1151
    
1152
    ALLOWED_TAGS = %w(redpre pre code)
1152
    ALLOWED_TAGS = %w(redpre pre code notextile)
1153 1153
    
1154 1154
    def escape_html_tags(text)
1155 1155
      text.gsub!(%r{<(\/?([!\w]+)[^<>\n]*)(>?)}) {|m| ALLOWED_TAGS.include?($2) ? "<#{$1}#{$3}" : "&lt;#{$1}#{'&gt;' unless $3.blank?}" }

Also available in: Unified diff