Jump to content

Extension:StructuredDiscussions/Hooks/FlowCheckHtmlContentXss

From mediawiki.org
FlowCheckHtmlContentXss
Available from version ???
Allows extensions to check if the HTML content contains XSS
Define function:
public static function onFlowCheckHtmlContentXss( $raw ) { ... }
Attach hook:
$wgHooks['FlowCheckHtmlContentXss'][] = 'MyExtensionHooks::onFlowCheckHtmlContentXss';
Called from:File(s): StructuredDiscussions / includes/Model/AbstractRevision.php
Function(s): getContent

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:FlowCheckHtmlContentXss extensions.

Parameters

[edit]
  • $raw: A value representing either bool, null, or string (as provided by Flow\Model\AbstractRevision::getContentRaw)