You are here

protected function Markdown::unhash in Markdown 7

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

Parameters

string $text: * @return string

5 calls to Markdown::unhash()
Markdown::formParagraphs in includes/Markdown.php
* Parse paragraphs * *
Markdown::hashPart in includes/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 includes/Markdown.php
* Callback method to parse inline anchors *
MarkdownExtra::formParagraphs in includes/MarkdownExtra.php
* Parse text into paragraphs *
MarkdownExtra::_doAnchors_inline_callback in includes/MarkdownExtra.php
* Callback for inline anchors *

File

includes/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);
}