2007-02-04 04:41:34 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'HTMLPurifier/HTMLModule.php';
|
|
|
|
|
|
|
|
/**
|
2007-02-04 20:09:35 +00:00
|
|
|
* XHTML 1.1 Presentation Module, defines simple presentation-related
|
|
|
|
* markup. Text Extension Module.
|
|
|
|
* @note The official XML Schema and DTD specs further divide this into
|
|
|
|
* two modules:
|
|
|
|
* - Block Presentation (hr)
|
|
|
|
* - Inline Presentation (b, big, i, small, sub, sup, tt)
|
|
|
|
* We have chosen not to heed this distinction, as content_sets
|
|
|
|
* provides satisfactory disambiguation.
|
2007-02-04 04:41:34 +00:00
|
|
|
*/
|
|
|
|
class HTMLPurifier_HTMLModule_Presentation extends HTMLPurifier_HTMLModule
|
|
|
|
{
|
|
|
|
|
2007-11-25 02:24:39 +00:00
|
|
|
public $name = 'Presentation';
|
2007-02-04 04:41:34 +00:00
|
|
|
|
2007-11-29 04:29:51 +00:00
|
|
|
public function __construct() {
|
2007-05-11 00:54:04 +00:00
|
|
|
$this->addElement('b', true, 'Inline', 'Inline', 'Common');
|
|
|
|
$this->addElement('big', true, 'Inline', 'Inline', 'Common');
|
2007-05-13 20:50:53 +00:00
|
|
|
$this->addElement('hr', true, 'Block', 'Empty', 'Common');
|
2007-05-11 00:54:04 +00:00
|
|
|
$this->addElement('i', true, 'Inline', 'Inline', 'Common');
|
|
|
|
$this->addElement('small', true, 'Inline', 'Inline', 'Common');
|
|
|
|
$this->addElement('sub', true, 'Inline', 'Inline', 'Common');
|
|
|
|
$this->addElement('sup', true, 'Inline', 'Inline', 'Common');
|
|
|
|
$this->addElement('tt', true, 'Inline', 'Inline', 'Common');
|
2007-02-04 04:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|