Welcome! » Log In » Create A New Profile

how does Core.CollectErrors operate

Posted by Pecos38 
how does Core.CollectErrors operate
July 12, 2017 01:16PM

hello

how directive Core.CollectErrors operate to display errors that occurred during purification like the demo?

exemple of html return (http://htmlpurifier.org/demo.php directive Core.CollectErrors is true)

Error Line 1, Column 0: Unrecognized <script> meta tag and all descendants removed

Error Line 1, Column 36: Unrecognized </script> meta tag and all descendants removed

Error Line 3, Column 0: href attribute on <a> removed

thank for the answer

Re: how does Core.CollectErrors operate
July 12, 2017 07:20PM

I tell people to look at the source code of demo.php. See http://repo.or.cz/htmlpurifier-web.git/blob/b4f116b5aebdc688e6e4b458d5a790add6282cd5:/demo.php

It's pretty simple.

Sorry, you do not have permission to post/reply in this forum.