We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need a similar scrubber as the ones seen in the documentation, but when I try to create and scrub some text it also scrubs the pattern I allowed.
# custom scrubber defmodule LinksOnlyScrubber do require HtmlSanitizeEx.Scrubber.Meta alias HtmlSanitizeEx.Scrubber.Meta Meta.remove_cdata_sections_before_scrub() Meta.strip_comments() Meta.allow_tag_with_uri_attributes("a", ["href"], ["https", "mailto", "http"]) Meta.strip_everything_not_covered() end
The tag has been removed
iex> HtmlSanitizeEx.Scrubber.scrub "This is a <a href=\"https://www.youtube.com/\">test</a>", LinksOnlyScrubber "This is a test"
The text should be left untouched
html_sanitize_ex 1.4.2 mochiweb 2.22.0
The text was updated successfully, but these errors were encountered:
adds failing test for issue rrrene#62
6ddd1bf
Hi, I've verified that allow_tag_with_uri_attributes is not working as expected.
allow_tag_with_uri_attributes
Here's a test to reproduce the issue:
jaimeiniesta@6ddd1bf
Failing on my machine with:
Sorry, something went wrong.
No branches or pull requests
I need a similar scrubber as the ones seen in the documentation, but when I try to create and scrub some text it also scrubs the pattern I allowed.
Actual result
The tag has been removed
Expected result
The text should be left untouched
Versions
html_sanitize_ex 1.4.2
mochiweb 2.22.0
The text was updated successfully, but these errors were encountered: