Extension:StructuredDiscussions/Hooks/FlowCheckHtmlContentXss

Category:Extension hooks#FlowCheckHtmlContentXss
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): Category:Extension hooks provided by StructuredDiscussionsStructuredDiscussions / 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

  • $raw: A value representing either bool, null, or string (as provided by Flow\Model\AbstractRevision::getContentRaw)
Category:Extension hooks Category:Extension hooks provided by StructuredDiscussions