MarkdownHelper::parseComment()
\nn\t3::MarkdownHelper()->parseComment($comment = '', $encode = true);
Convert comment string to readable HTML string Comments can use Markdown. Removes '' and '' etc.
\Nng\Nnhelpers\Helpers\MarkdownHelper::parseComment( '...' );
Copied!
| @return string
Source Code
public static function parseComment ( $comment = '', $encode = true ) {
$comment = self::removeAsterisks( $comment );
if (!$encode) return $comment;
$comment = htmlspecialchars( $comment );
return self::toHTML( $comment );
}
Copied!