Skip to content

Commit 99648d4

Browse files
committed
Test fix
1 parent 6ef3bfd commit 99648d4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Slimdown.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Slimdown {
4444

4545
private static function code_parse ($regs) {
4646
$item = $regs[1];
47-
$item = htmlentities ($item);
47+
$item = htmlentities ($item, ENT_COMPAT);
4848
$item = str_replace ("\n\n", '<br>', $item);
4949
$item = str_replace ("\n", '<br>', $item);
5050
while (mb_substr ($item, 0, 4) === '<br>') {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<pre><code>function foo () {<br> print (&#039;Foo&#039;);<br>}</code></pre>
1+
<pre><code>function foo () {<br> print ('Foo');<br>}</code></pre>

0 commit comments

Comments
 (0)