4 ms·
This would be really useful as a service. Send a glob of html to their endpoint, and return what this site does (the cleaned/washed html). As a service, it coul
by bluetidepro 9y ago
This would be really useful as a service. Send a glob of html to their endpoint, and return what this site does (the cleaned/washed html). As a service, it could be more efficient than doing 1 file at a time on their site. Or better yet, it would be awesome to open source the way this cleans the html. Regardless, awesome site. I could see the use for various scenarios.
- paradite 9y agoThe first one is a bad idea in terms of security (hijacking and xss), scalability and reliability (see what happened to MathJax CDN and npm left-pad).
- donald123 9y agothe idea itself is not bad, but the actual implementation is challenging to be reliable and secure.
- seky 9y agothanks for your comment :-) I think rather than using a web service people would use some library like the HTML Tidy. Regarding to opensourcing - I think I will rather use some opensource as a core lib for my project.
- jacurtis 9y agoTake a look at HTMLTidy which is an open source library that does exactly this, but without having to send it off as a request, making it faster, cheaper, and more secure.