diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-16 18:23:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-16 18:23:25 +0000 |
commit | e911ce7cb41c3fce7d78f7032f2772b7061446bf (patch) | |
tree | 5752ae89cf3e82f8824b97fca1b92ca216515233 /test/unit/lib/redmine | |
parent | 95f7471e9c786a7cf5700f6b078ed62ca0cf264e (diff) | |
download | redmine-e911ce7cb41c3fce7d78f7032f2772b7061446bf.tar.gz redmine-e911ce7cb41c3fce7d78f7032f2772b7061446bf.zip |
Remove style tags from html body (#15716).
git-svn-id: http://svn.redmine.org/redmine/trunk@14315 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/html_parser_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb index 4662aeaeb..8f6ff5ab7 100644 --- a/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb @@ -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 |