public function FilterHtml::getAllowedHtml in Markdown 8.2
Retrieves the allowed HTML.
Parameters
bool $includeGlobal: Flag indicating whether to include global elements (i.e. *).
Return value
string The allowed HTML.
File
- src/
Util/ FilterHtml.php, line 260
Class
- FilterHtml
- Extends FilterHtml to allow more more permissive global attributes.
Namespace
Drupal\markdown\UtilCode
public function getAllowedHtml($includeGlobal = TRUE) {
$restrictions = $this
->getHtmlRestrictions();
if (!$includeGlobal) {
unset($restrictions['allowed']['*']);
}
return static::tagsToString($restrictions['allowed']);
}