You are here

public function ParsedMarkdownInterface::setAllowedTags in Markdown 3.0.x

Sets the allowed tags.

Parameters

array|true $allowed_tags: Optional. An array of allowed HTML tags that are permitted in the parsed HTML to ensure it is safe from XSS vulnerabilities. Pass TRUE if all tags are allowed.

Return value

static

1 method overrides ParsedMarkdownInterface::setAllowedTags()
ParsedMarkdown::setAllowedTags in src/ParsedMarkdown.php
Sets the allowed tags.

File

src/ParsedMarkdownInterface.php, line 168

Class

ParsedMarkdownInterface

Namespace

Drupal\markdown

Code

public function setAllowedTags($allowed_tags = self::ALLOWED_TAGS);