Hacker News new | ask | show | jobs
by burnbabyburn 3348 days ago
of this matter I really like https://github.com/mozilla/bleach .

is your project any different aside from the "service oriented" nature? (also I don't see any usage method, if not from the browser)

4 comments

Htmltidy is popular as well: https://github.com/htacg/tidy-html5

Though, on second glance, it doesn't do what HtmlWasher is doing here...stripping out classes, etc. It just cleans it up, unmatched tags and so forth.

yes - but this is not an online service - I wanted to build something handy you can use when you are stressed at the office need to reuse some other HTML doc quickly no time to install anything :-)

I also realized this tool/lib exists after doing Html Washer - I am considering to use their lib as an underlying lib for my project

Bleach also gives at least one use case for sanitizing html:

"Bleach is intended for sanitizing text from untrusted sources."

I think HtmlWasher should have something on the About tab.

there is link to my company where is my identity - so it is not anonymous :-) but yes - why not, will fill there something more
I think jtraffic meant adding a warning that HtmlWasher is not suitable for turning unsafe HTML into a safe version, e.g. for sanitising forum posts written in HTML.
my project does not want to compete with any lib or commandline or other downloadable tool - yes - it's main purpose is convenience

thanks, I will consider using Bleach as an underlying lib / part of my service