public static function FilterHtml::create in Markdown 8.2
Creates a new instance.
Parameters
string $allowedHtml: Optional. The allowed HTML.
Return value
static
File
- src/
Util/ FilterHtml.php, line 35
Class
- FilterHtml
- Extends FilterHtml to allow more more permissive global attributes.
Namespace
Drupal\markdown\UtilCode
public static function create($allowedHtml = '') {
return new static([
'settings' => [
'allowed_html' => $allowedHtml,
'filter_html_help' => 1,
'filter_html_nofollow' => 0,
],
], 'filter_html', [
'provider' => 'markdown',
]);
}