Merged r1505, r1506, r1511, r1512, r1517, r1518, r1524 to 1526 from trunk.
git-svn-id: http://redmine.rubyforge.org/svn/branches/0.7-stable@1532 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -829,7 +829,7 @@ module SVG
|
||||
@doc << DocType.new( %q{svg PUBLIC "-//W3C//DTD SVG 1.0//EN" } +
|
||||
%q{"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"} )
|
||||
if style_sheet && style_sheet != ''
|
||||
@doc << ProcessingInstruction.new( "xml-stylesheet",
|
||||
@doc << Instruction.new( "xml-stylesheet",
|
||||
%Q{href="#{style_sheet}" type="text/css"} )
|
||||
end
|
||||
@root = @doc.add_element( "svg", {
|
||||
|
||||
+1
-1
@@ -1131,7 +1131,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?}" }
|
||||
|
||||
Reference in New Issue
Block a user