Closed marvelm closed 7 years ago
Would be great to merge this but there is an error with one test:
1) test should not destroy white-space /2 (HtmlSanitizeExScrubberStripTagsTest)
test/strip_tags_test.exs:248
Assertion with == failed
code: "sometext with break between tags\r\nwill remove break" == strip_tags("some<b>text with break between tags</b>\r\n<i>will remove break</i>")
lhs: "sometext with break between tags\r\nwill remove break"
rhs: "sometext with break between tagswill remove break"
stacktrace:
test/strip_tags_test.exs:249
Looks like it's caused by the fact mochiweb
ignores some whitespace characters. A contributor has also previously encountered this issue.
v1.2.0
contains this. :+1:
mochiweb
.I need to make this change because we'd like to use
html_sanitize_ex
andfloki
in the same project, but there's a version conflict.floki
requiresmochiweb
to be at least2.15.0
.