mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-10 07:38:41 +00:00
eaabccdd9b
- Removed HTMLPurifier_Error - Documentation updates - Removed more copy() methods in favor of clone - HTMLPurifier::getInstance() to HTMLPurifier::instance() - Fix InterchangeBuilder to use HTMLPURIFIER_PREFIX git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1689 48356398-32a2-884e-a903-53898d9a118a
23 lines
492 B
PHP
23 lines
492 B
PHP
<?php
|
|
|
|
/**
|
|
* XHTML 1.1 Target Module, defines target attribute in link elements.
|
|
*/
|
|
class HTMLPurifier_HTMLModule_Target extends HTMLPurifier_HTMLModule
|
|
{
|
|
|
|
public $name = 'Target';
|
|
|
|
public function __construct() {
|
|
$elements = array('a');
|
|
foreach ($elements as $name) {
|
|
$e = $this->addBlankElement($name);
|
|
$e->attr = array(
|
|
'target' => new HTMLPurifier_AttrDef_HTML_FrameTarget()
|
|
);
|
|
}
|
|
}
|
|
|
|
}
|
|
|