Skip to content

Commit

Permalink
fixed HTML comments escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jul 18, 2013
1 parent a66c0d0 commit 02e24f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Texy/modules/TexyHtmlModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public function solveComment($invocation, $content)
}

// sanitize comment
$content = preg_replace('#-{2,}#', '-', $content);
$content = preg_replace('#-{2,}#', ' - ', $content);
$content = trim($content, '-');

return $this->texy->protect('<!--' . $content . '-->', Texy::CONTENT_MARKUP);
Expand Down

0 comments on commit 02e24f1

Please sign in to comment.