Concrete class for sanitizing html of forum posts.
More...
|
| __construct () |
| Constructor. More...
|
|
| __construct () |
| Constructor. More...
|
|
| purify ($a_html, $a_config=null) |
| Filters an HTML snippet/document to be XSS-free and standards-compliant. More...
|
|
| purifyArray (array $a_array_of_html, $a_config=null) |
| Filters an array of HTML snippets/documents to be XSS-free and standards-compliant. More...
|
|
| purify ($a_html) |
| Filters an HTML snippet/document to be XSS-free and standards-compliant. More...
|
|
| purifyArray (array $a_array_of_html) |
| Filters an array of HTML snippets/documents to be XSS-free and standards-compliant. More...
|
|
Concrete class for sanitizing html of forum posts.
- Author
- Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
- Version
- $Id$
Definition at line 13 of file class.ilHtmlForumPostPurifier.php.
◆ __construct()
ilHtmlForumPostPurifier::__construct |
( |
| ) |
|
◆ getPurifierConfigInstance()
ilHtmlForumPostPurifier::getPurifierConfigInstance |
( |
| ) |
|
|
protected |
Concrete function which builds a html purifier config instance.
protected
- Returns
- HTMLPurifier_Config Instance of HTMLPurifier_Config
Definition at line 44 of file class.ilHtmlForumPostPurifier.php.
References $config, $def, $tags, ilHtmlPurifierAbstractLibWrapper\_getCacheDirectory(), ilObjAdvancedEditing\_getUsedHTMLTags(), HTMLPurifier_Config\createDefault(), ilHtmlPurifierAbstractLibWrapper\makeElementListTinyMceCompliant(), and ilHtmlPurifierAbstractLibWrapper\removeUnsupportedElements().
46 include_once
'Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php';
49 $config->set(
'HTML.DefinitionID',
'ilias forum post');
50 $config->set(
'HTML.DefinitionRev', 1);
52 $config->set(
'HTML.Doctype',
'XHTML 1.0 Strict');
57 $config->set(
'HTML.ForbiddenAttributes',
'div@style');
60 $def->addAttribute(
'a',
'target',
'Enum#_blank,_self,_target,_top');
static _getCacheDirectory()
Get the directory for HTMLPurifier cache files.
removeUnsupportedElements($a_array)
Removes all unsupported elements.
static _getUsedHTMLTags($a_module="")
Returns an array of all allowed HTML tags for text editing.
static createDefault()
Convenience constructor that creates a default configuration object.
makeElementListTinyMceCompliant($elements)
◆ $_type
ilHtmlForumPostPurifier::$_type = 'frm_post' |
|
static |
The documentation for this class was generated from the following file: