Ciconia / A New Markdown Parser for #PHP

class EscaperExtension implements ExtensionInterface

Escape special characters

Original source code from Markdown.pl

Copyright (c) 2004 John Gruber http://daringfireball.net/projects/markdown/

Methods

void register(Markdown $markdown)

Adds listeners to EventEmitter

escapeSpecialChars(Text $text)
escapeAmpsAndBrackets(Text $text)
unescapeSpecialChars(Text $text)
getName()

Returns the name of the extension

Details

at line 30 public void register(Markdown $markdown)

Adds listeners to EventEmitter

Parameters

Markdown $markdown

Return Value

void

at line 43 public escapeSpecialChars(Text $text)

Parameters

Text $text

at line 53 public escapeAmpsAndBrackets(Text $text)

Parameters

Text $text

at line 67 public unescapeSpecialChars(Text $text)

Parameters

Text $text

at line 77 public getName()

Returns the name of the extension