first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
||||
* Post-transform that performs validation to the name attribute; if
|
||||
|
||||
* it is present with an equivalent id attribute, it is passed through;
|
||||
|
||||
* otherwise validation is performed.
|
||||
|
||||
*/
|
||||
|
||||
class HTMLPurifier_AttrTransform_NameSync extends HTMLPurifier_AttrTransform
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
public function __construct() {
|
||||
|
||||
$this->idDef = new HTMLPurifier_AttrDef_HTML_ID();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user