You are here

public function BaseParser::setAllowedTags in Markdown 3.0.x

Sets the allowed HTML tags.

Parameters

array $tags: The allowed HTML tags.

Return value

static

Overrides MarkdownParserInterface::setAllowedTags

File

src/Plugin/Markdown/BaseParser.php, line 443

Class

BaseParser
Plugin annotation @MarkdownParser( id = "_broken", label = @Translation("Missing Parser"), )

Namespace

Drupal\markdown\Plugin\Markdown

Code

public function setAllowedTags(array $tags = []) {
  $this->allowedTags = $tags;
  return $this;
}