Skip to content
Permalink
Browse files

Fixed issue with comment length.

  • Loading branch information...
cubiclesoft committed May 10, 2019
1 parent 433920a commit 4a9c18965222d78fa4343aaf432a57d7923637a0
Showing with 2 additions and 2 deletions.
  1. +2 −2 support/tag_filter.php
@@ -110,9 +110,9 @@ public function Process($content)
if ($this->options["keep_comments"])
{
$content2 = substr($content, $pos + 3, $pos2);
$content2 = substr($content, $pos + 3, $pos2 - $pos - 3);
if ($this->options["charset"] === "UTF-8" && !self::IsValidUTF8($content2)) $content2 = self::MakeValidUTF8($content2);
$content2 = "<!-- " . htmlspecialchars($content2, ENT_COMPAT | ENT_HTML5, $this->options["charset"]) . " -->";
$content2 = "<!-- " . trim(htmlspecialchars($content2, ENT_COMPAT | ENT_HTML5, $this->options["charset"])) . " -->";
// Let a callback handle any necessary changes.
if (isset($this->options["content_callback"]) && is_callable($this->options["content_callback"])) call_user_func_array($this->options["content_callback"], array($this->stack, $result, &$content2, $this->options));

0 comments on commit 4a9c189

Please sign in to comment.
You can’t perform that action at this time.