From 0389c60129636969d3727b752625d95a559deff6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 8 Jun 2008 20:31:36 +0000 Subject: Fixed: notextile tag has no effect. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1517 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redcloth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/redcloth.rb b/lib/redcloth.rb index 3880eb9d3..42eddd8e0 100644 --- a/lib/redcloth.rb +++ b/lib/redcloth.rb @@ -1149,7 +1149,7 @@ class RedCloth < String end end - ALLOWED_TAGS = %w(redpre pre code) + ALLOWED_TAGS = %w(redpre pre code notextile) def escape_html_tags(text) text.gsub!(%r{<(\/?([!\w]+)[^<>\n]*)(>?)}) {|m| ALLOWED_TAGS.include?($2) ? "<#{$1}#{$3}" : "<#{$1}#{'>' unless $3.blank?}" } -- cgit v1.2.3