Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 769
user398341 Avatar asked Jun 21 '11 19:06

user398341


People also ask

Is Target _blank deprecated?

It looks like target="_blank" is still alright. It is listed as a browsing context keyword in the latest HTML5 draft.

What does _blank mean HTML?

Description. _blank. Opens the linked document in a new window or tab. _self. Opens the linked document in the same frame as it was clicked (this is default)


1 Answers

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

like image 91
TuteC Avatar answered Sep 19 '22 08:09

TuteC