notes: allow all elements to have style/title attributes.

This commit is contained in:
evazion
2017-06-15 20:34:38 -05:00
parent 85e32b5eb2
commit 869ccad6ba
2 changed files with 21 additions and 8 deletions

View File

@@ -11,5 +11,10 @@ class NoteSanitizerTest < ActiveSupport::TestCase
body = '<p style="background-image: url(http://www.google.com);">test</p>'
assert_equal("<p>test</p>", NoteSanitizer.sanitize(body))
end
should "allow style attributes on every tag" do
body = '<p style="font-size: 1em;">test</p>'
assert_equal('<p style="font-size: 1em;">test</p>', NoteSanitizer.sanitize(body))
end
end
end