I just want to give HTMLPurifier some HTML and check if the HTML has anything questionable, without changing the HTML.
The closest seems to be using CollectErrors, however that just provides nondescript messages like "rel attribute on <a> removed". Is there a way to add in more details, such as the context, the contents of the rel attribute, etc.?
Or, is there another way to just determine if some HTML contains something bad?
I just want to give HTMLPurifier some HTML and check if the HTML has anything questionable, without changing the HTML.
The closest seems to be using CollectErrors, however that just provides nondescript messages like "rel attribute on <a> removed". Is there a way to add in more details, such as the context, the contents of the rel attribute, etc.?
Or, is there another way to just determine if some HTML contains something bad?