2007-02-04 04:41:34 +00:00
|
|
|
<?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
|
|
|
|
2008-05-22 19:36:59 +00:00
|
|
|
public function setup($config) {
|
2008-04-21 23:28:52 +00:00
|
|
|
$this->addElement('b', 'Inline', 'Inline', 'Common');
|
|
|
|
$this->addElement('big', 'Inline', 'Inline', 'Common');
|
|
|
|
$this->addElement('hr', 'Block', 'Empty', 'Common');
|
|
|
|
$this->addElement('i', 'Inline', 'Inline', 'Common');
|
|
|
|
$this->addElement('small', 'Inline', 'Inline', 'Common');
|
|
|
|
$this->addElement('sub', 'Inline', 'Inline', 'Common');
|
|
|
|
$this->addElement('sup', 'Inline', 'Inline', 'Common');
|
|
|
|
$this->addElement('tt', 'Inline', 'Inline', 'Common');
|
2007-02-04 04:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|