I’m unsure if is just me using a wrong syntax (I tried some variations… and the funny part is that href works as expected) or is an real issue related with the htmlpurifier update.
Yes, I believe you’ll need to add that to lib/pkp/classes/core/String.inc.php in the stripUnsafeHtml function. The target attribute, if I recall, is not technically valid XHTML – so just adding it to the allowed attribute list isn’t sufficient. You also need to tell the HTML Purifier library not to worry overmuch about validity.
Regards,
Alec Smecher
Public Knowledge Project Team
The trouble with this solution is that it works, but it’s technically invalid XHTML. For future releases (OMP / OJS 3.0) we’ve moved away from XHTML and the existing configuration variable should be sufficient. For now I’d suggest maintaining a local modification.
Regards,
Alec Smecher
Public Knowledge Project Team