Defect #3072 ยป yh.patch
| lib/redcloth3.rb (working copy) | ||
|---|---|---|
|
end
|
||
|
end
|
||
|
|
||
|
ALLOWED_TAGS = %w(redpre pre code notextile)
|
||
|
ALLOWED_TAGS = %w(redpre pre code notextile div)
|
||
|
|
||
|
def escape_html_tags(text)
|
||
|
text.gsub!(%r{<(\/?([!\w]+)[^<>\n]*)(>?)}) {|m| ALLOWED_TAGS.include?($2) ? "<#{$1}#{$3}" : "<#{$1}#{'>' unless $3.blank?}" }
|
||