Defect #3072 ยป yh.patch
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}" : "<#{$1}#{'>' unless $3.blank?}" } |