Revision 1517
Added by Jean-Philippe Lang about 17 years ago
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}" : "<#{$1}#{'>' unless $3.blank?}" } |
Also available in: Unified diff
Fixed: notextile tag has no effect.