Project

General

Profile

Bug #19339 » class.t3lib_tsparser_ext.php.diff

Administrator Admin, 2008-09-16 20:31

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>';
}
}
(1-1/3)