Unfortunately, if there isn't already an existing OpenCart plugin for using HTML Purifier, it will probably be quite difficult to integrate it. Your best bet is to pop over to OpenCart support and ask them if anyone has written a plugin of this sort.by Ambush Commander - Support
Yes, the problem is that these are HTML5 elements, and no one has stepped up and submitted implementations for the bulk of HTML5.by Ambush Commander - Support
find -name HTMLPurifier.phpby Ambush Commander - Support
Do you have the ability to edit HTML Purifier? Can you have it print out what the input output HTML is?by Ambush Commander - Support
OK well if you make all those arrays empty that should put you back on something like the defaults.by Ambush Commander - Support
If you post some code I'd be able to better help you. But usually you have some line like $config->set('Foo', 'Bar');; delete all those lines.by Ambush Commander - Support
What I am asking is this: if you take your HTML Purifier configuration and delete all the lines involving the config object (i.e. stop setting HTML.Allowed and CSS.AllowedProperties), does your second example still get purified away?by Ambush Commander - Support
Ah, but this one is OK with the demo. What if you use the default configuration; is there still a problem?by Ambush Commander - Support
I guess the parser doesn't know how to deal with spaces. Would be worth fixing!by Ambush Commander - Support
What is the HTML that is failing to purify? Here is a working sample.by Ambush Commander - Support
Yeah, pipe syntax is not a thing. But if you just put URI that should be good enough, since all valid numbers are also valid URIs.by Ambush Commander - Support
You need to pass the config object to the HTMLPurifier constructor.by Ambush Commander - Support
I'm not sure. Maybe the best thing to do is fix the ordering the problem, but that might be fragile. Alternately, a new option to unconditionally apply _blank to everything?by Ambush Commander - Support
Well, if you want to submit your change as a patch, I'd be happy to take that too :)by Ambush Commander - Support
I guess the trouble is probably the TargetBlank gets applied before we make URLs absolute, so there's an ordering problem. There isn't any way to affect the ordering but you could take library/HTMLPurifier/AttrTransform/TargetBlank.php and make your own version which unconditionally applies the target attribute.by Ambush Commander - Support
%CSS.MaxImgLength should handle it alreadyby Ambush Commander - General
I did a grep through HTML Purifier's entire history, but I did not see any reference to a filter of this name. Are you sure it was called this?by Ambush Commander - General
Well, you don't have to turn on this feature if you want Amazon referrer links to work!by Ambush Commander - Support
Yes, HTML Purifier is not the most memory friendly software, and there's probably not much non-code changes you could do to improve it. If you can post the HTML, there might just be some quadratic factor in the code that we could identify and fix.by Ambush Commander - Support
That's probably a good idea we should add, conditional on target="_blank" being set.by Ambush Commander - Support
There's no way to do this with the given config options. But it's not too hard to adapt library/HTMLPurifier/AttrTransform/Nofollow.php into the version you need (you could patch it first; but you can also use http://htmlpurifier.org/docs/enduser-customize.html to write your own AttrTransform class, and then register it yourself.)by Ambush Commander - Support
Take a look at http://htmlpurifier.org/docs/enduser-utf8.htmlby Ambush Commander - General
HTML Purifier's rule for 'display' doesn't support flex. You'll have to override the CSS (get a copy of CSSDefinition and then override the display definition; look at CSSDefinition.php for ideas).by Ambush Commander - General
Oh oops, the problem is that the id validator is rejecting names with leading underscore. Set %HTML.Attr.Name.UseCDATA to true.by Ambush Commander - Support
Your %HTML.Allowed syntax is not correct; use a pipe to separate values.by Ambush Commander - Support
Ah! Well that certainly is a lot more specific problem. Not sure I can help about Chrome. If you contribute a patch to make data understand svg I'd be happy to take it.by Ambush Commander - Support
It should work if you turn on the data scheme (don't modify anything else). Can you post some self-contained code that is filtering out the img?by Ambush Commander - Support
Not in the base library. You'll have to write some code.by Ambush Commander - General
You can subscribe to the mailing list: https://mailman.mit.edu/mailman/listinfo/htmlpurifierby Ambush Commander - Support