mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-14 01:08:41 +00:00
30 lines
895 B
PHP
30 lines
895 B
PHP
|
<?php
|
||
|
|
||
|
require_once 'HTMLPurifier/HTMLModule.php';
|
||
|
|
||
|
/**
|
||
|
* XHTML 1.1 Edit Module, defines editing-related elements. Text Extension Module.
|
||
|
*/
|
||
|
class HTMLPurifier_HTMLModule_Edit extends HTMLPurifier_HTMLModule
|
||
|
{
|
||
|
|
||
|
var $elements = array('del', 'ins');
|
||
|
var $info = array();
|
||
|
var $content_sets = array('Inline' => 'del | ins');
|
||
|
|
||
|
function HTMLPurifier_HTMLModule_Edit() {
|
||
|
foreach ($this->elements as $element) {
|
||
|
$this->info[$element] = new HTMLPurifier_ElementDef();
|
||
|
$this->info[$element]->attr = array(
|
||
|
0 => array('Common'),
|
||
|
'cite' => 'URI',
|
||
|
// 'datetime' => 'Datetime' // Datetime not implemented
|
||
|
);
|
||
|
$this->info[$element]->content_model = '#PCDATA | Inline ! #PCDATA | Flow';
|
||
|
$this->info[$element]->content_model_type = 'chameleon';
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|