Project

General

Profile

Feature #17540 » class.t3lib_tsparser_ext.php.diff

Administrator Admin, 2007-08-23 00:11

View differences:

t3lib/class.t3lib_tsparser_ext.php (working copy)
$comment = preg_replace('/[\r\n]/', ' ', $comment); // Remove linebreaks, replace with ' '
$comment = preg_replace('/[#\*]{2,}/', '', $comment); // Remove # and * if more than twice in a row
$comment = preg_replace('/^[#\*\s]+/', '# ', $comment); // Replace leading # (just if it exists) and add it again. Result: Every comment should be prefixed by a '#'.
$comment = $this->makeHtmlspecialchars($comment); // Masking HTML Tags: Replace < with &lt; and > with &gt;
$HTML.= ' <span class="comment">'.trim($comment).'</span>';
}
}
(2-2/7)