| 1: | <?php
|
| 2: |
|
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | |
| 9: | |
| 10: | |
| 11: | |
| 12: |
|
| 13: | class HTMLPurifier_HTMLModule_Presentation extends HTMLPurifier_HTMLModule
|
| 14: | {
|
| 15: |
|
| 16: | |
| 17: | |
| 18: |
|
| 19: | public $name = 'Presentation';
|
| 20: |
|
| 21: | |
| 22: | |
| 23: |
|
| 24: | public function setup($config)
|
| 25: | {
|
| 26: | $this->addElement('hr', 'Block', 'Empty', 'Common');
|
| 27: | $this->addElement('sub', 'Inline', 'Inline', 'Common');
|
| 28: | $this->addElement('sup', 'Inline', 'Inline', 'Common');
|
| 29: | $b = $this->addElement('b', 'Inline', 'Inline', 'Common');
|
| 30: | $b->formatting = true;
|
| 31: | $big = $this->addElement('big', 'Inline', 'Inline', 'Common');
|
| 32: | $big->formatting = true;
|
| 33: | $i = $this->addElement('i', 'Inline', 'Inline', 'Common');
|
| 34: | $i->formatting = true;
|
| 35: | $small = $this->addElement('small', 'Inline', 'Inline', 'Common');
|
| 36: | $small->formatting = true;
|
| 37: | $tt = $this->addElement('tt', 'Inline', 'Inline', 'Common');
|
| 38: | $tt->formatting = true;
|
| 39: | }
|
| 40: | }
|
| 41: |
|
| 42: |
|
| 43: | |