mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
Remove style tags from html body (#15716).
git-svn-id: http://svn.redmine.org/redmine/trunk@14315 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -27,4 +27,9 @@ class Redmine::WikiFormatting::HtmlParserTest < ActiveSupport::TestCase
|
||||
assert_equal "A html snippet with\na new line.",
|
||||
@parser.to_text('<p>A html snippet with<br>a new line.</p>')
|
||||
end
|
||||
|
||||
def test_should_remove_style_tags_from_body
|
||||
assert_equal "Text",
|
||||
@parser.to_text('<html><body><style>body {font-size: 0.8em;}</style>Text</body></html>')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user