You are here

public function ParsedMarkdown::getHtml in Markdown 3.0.x

Retrieves the parsed HTML.

Return value

string The parsed HTML.

Overrides ParsedMarkdownInterface::getHtml

3 calls to ParsedMarkdown::getHtml()
ParsedMarkdown::getId in src/ParsedMarkdown.php
Retrieves the identifier for this object.
ParsedMarkdown::getSize in src/ParsedMarkdown.php
Retrieves the file size of the parsed HTML.
ParsedMarkdown::__toString in src/ParsedMarkdown.php
Returns markup.

File

src/ParsedMarkdown.php, line 137

Class

ParsedMarkdown

Namespace

Drupal\markdown

Code

public function getHtml() {
  if ($this->allowedTags === TRUE) {
    return $this->html;
  }
  return Xss::filter($this->html, $this->allowedTags);
}