You are here

protected function Markdown::unhash in Express 8

* Swap back in all the tags hashed by _HashHTMLBlocks. *

Parameters

string $text: * @return string

5 calls to Markdown::unhash()
Markdown::formParagraphs in vendor/michelf/php-markdown/Michelf/Markdown.php
* Parse paragraphs * *
Markdown::hashPart in vendor/michelf/php-markdown/Michelf/Markdown.php
* Called whenever a tag must be hashed when a function insert an atomic * element in the text stream. Passing $text to through this function gives * a unique text-token which will be reverted back when calling unhash. * * The $boundary…
Markdown::_doAnchors_inline_callback in vendor/michelf/php-markdown/Michelf/Markdown.php
* Callback method to parse inline anchors *
MarkdownExtra::formParagraphs in vendor/michelf/php-markdown/Michelf/MarkdownExtra.php
* Parse text into paragraphs *
MarkdownExtra::_doAnchors_inline_callback in vendor/michelf/php-markdown/Michelf/MarkdownExtra.php
* Callback for inline anchors *

File

vendor/michelf/php-markdown/Michelf/Markdown.php, line 1883

Class

Markdown
Markdown Parser Class

Namespace

Michelf

Code

protected function unhash($text) {
  return preg_replace_callback('/(.)\\x1A[0-9]+\\1/', array(
    $this,
    '_unhash_callback',
  ), $text);
}