79186550

Date: 2024-11-13 20:32:50
Score: 2
Natty:
Report link

So, it requires some amount of work, but it is possible to implement this yourself.

All steps would be too much to explain here, but I've encountered the exact same problem. I wanted to sanitize HTML contents as whole documents, and had to find out the hard way, how the library works under the hood.

In short:

I've explained the approach in detail for a use-case based on shopware on my blog: https://machinateur.dev/blog/how-to-sanitize-full-html-5-documents-with-htmlpurifier.

Reasons:
  • Contains signature (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: machinateur