PHP Classes

File: test/expect/Backslash-escapes.html

Recommend this page to a friend!
  Classes of Manuel Lemos   PHP Markdown Parser   test/expect/Backslash-escapes.html   Download  
File: test/expect/Backslash-escapes.html
Role: Auxiliary data
Content type: text/plain
Description: Original test HTML output file by John Gruber
Class: PHP Markdown Parser
Parse Markdown documents and generate HTML tags
Author: By
Last change: Fixed the end of line buffer variable setting.
Date: 7 years ago
Size: 1,796 bytes
 

Contents

Class file image Download
<p>These should all get escaped:</p> <p>Backslash: \\</p> <p>Backtick: \`</p> <p>Asterisk: \*</p> <p>Underscore: \_</p> <p>Left brace: \{</p> <p>Right brace: \}</p> <p>Left bracket: \[</p> <p>Right bracket: \]</p> <p>Left paren: \(</p> <p>Right paren: \)</p> <p>Greater-than: \&gt;</p> <p>Hash: \#</p> <p>Period: \.</p> <p>Bang: \!</p> <p>Plus: \+</p> <p>Minus: \-</p> <p></p> <p></p> <p>These should not, because they occur within a code block:</p> <pre><code>Backslash: \\ </code></pre><p></p> <pre><code>Backtick: \` </code></pre><p></p> <pre><code>Asterisk: \* </code></pre><p></p> <pre><code>Underscore: \_ </code></pre><p></p> <pre><code>Left brace: \{ </code></pre><p></p> <pre><code>Right brace: \} </code></pre><p></p> <pre><code>Left bracket: \[ </code></pre><p></p> <pre><code>Right bracket: \] </code></pre><p></p> <pre><code>Left paren: \( </code></pre><p></p> <pre><code>Right paren: \) </code></pre><p></p> <pre><code>Greater-than: \&gt; </code></pre><p></p> <pre><code>Hash: \# </code></pre><p></p> <pre><code>Period: \. </code></pre><p></p> <pre><code>Bang: \! </code></pre><p></p> <pre><code>Plus: \+ </code></pre><p></p> <pre><code>Minus: \- </code></pre><p></p> <p></p> <p>Nor should these, which occur in code spans:</p> <p>Backslash: <code>\\</code></p> <p>Backtick: <code></code> \<code></code>`</p> <p>Asterisk: <code>\*</code></p> <p>Underscore: <code>\_</code></p> <p>Left brace: <code>\{</code></p> <p>Right brace: <code>\}</code></p> <p>Left bracket: <code>\[</code></p> <p>Right bracket: <code>\]</code></p> <p>Left paren: <code>\(</code></p> <p>Right paren: <code>\)</code></p> <p>Greater-than: <code>\&gt;</code></p> <p>Hash: <code>\#</code></p> <p>Period: <code>\.</code></p> <p>Bang: <code>\!</code></p> <p>Plus: <code>\+</code></p> <p>Minus: <code>\-</code></p>