clean-html icon indicating copy to clipboard operation
clean-html copied to clipboard

Generated HTML removed the <script> tag

Open faizalmy opened this issue 7 years ago • 5 comments

image

faizalmy avatar Oct 20 '17 03:10 faizalmy

left is original, right is the generated one.

faizalmy avatar Oct 20 '17 03:10 faizalmy

See #12. I'm willing to reevaluate the current (non) solution, but time is an issue. Do you want to take a stab at it?

dave-kennedy avatar Oct 20 '17 16:10 dave-kennedy

I think a friendlier solution would be to have options (i.e. remove-script, remove-style, default to true so as not to break anyone) that would allow these tags to simply be ignored and left as-is.

Love clean-html's lightness (and cli interface!) but sadly stripping script and style makes it tough for us.

ryanblock avatar Feb 16 '18 19:02 ryanblock

That's a good idea. I can add those when I have time or I'll accept a PR if you want to try.

dave-kennedy avatar Feb 19 '18 17:02 dave-kennedy

yeah I need that too!!!

clockshark avatar Jul 13 '20 23:07 clockshark

Fixed in 6a1cc0d.

dave-kennedy avatar Apr 07 '23 03:04 dave-kennedy