Make external links in comments clickable (FS#20137).

Comments are now split at link boundaries and links are converted
separately. I find this to be a much cleaner way than re-converting
comments that have already been converted using htmlspecialchars(). This
also doesn't require any callback procedure.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2010-10-03 21:51:45 +02:00
parent a417224988
commit 60edcd04e5
2 changed files with 25 additions and 1 deletions

View file

@ -25,7 +25,7 @@ while (list($indx, $carr) = each($comments)) { ?>
?></div>
<blockquote class="comment-body">
<div>
<?php echo nl2br(htmlspecialchars($carr['Comments'])) ?>
<?php echo parse_comment($carr['Comments']) ?>
</div>
</blockquote>
<?php