Search code examples
phphtmlhtmlpurifier

HTMLPurifier removes target="_blank"


I'm using HTMLPurifier and even thou I have :

$config->set('HTML.Doctype', 'XHTML 1.0 Transitional');

it removes all 'target' attribues from the links.

Any idea why is it doing it?


Solution

  • The list of allowed frame targets is not enabled by default. You have to enable it manually.