Closed
Description
I just ran into an issue where something was removed which was unexpected. I also found a test, but this test is rather confusing: test_strip_comments
. It contains this assertion:
assert_equal "This is ", full_sanitize("This is <-- not\n a comment here.")
This assertion was different, but was changed 3 years ago, without explanation why this behaviour changed.
assert_equal "This is <-- not\n a comment here.", full_sanitize("This is <-- not\n a comment here.")
I think the old assertion is what is expected, not that everything after <--
is stripped.
This came up because I ran simple_format
on user input, and everything after the user entered <-
was removed.
Metadata
Metadata
Assignees
Labels
No labels