You are here

function Markdown_Parser::unhash in Markdown 5

Same name and namespace in other branches
  1. 6 markdown.php \Markdown_Parser::unhash()
3 calls to Markdown_Parser::unhash()
MarkdownExtra_Parser::formParagraphs in ./markdown.php
Markdown_Parser::formParagraphs in ./markdown.php
Markdown_Parser::hashPart in ./markdown.php

File

./markdown.php, line 1622

Class

Markdown_Parser

Code

function unhash($text) {

  #

  # Swap back in all the tags hashed by _HashHTMLBlocks.

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