[aur-dev] [PATCH] Make possible to post patches in comments

Manuel Tortosa manutortosa at gmail.com
Wed Sep 29 19:43:00 EDT 2010


On Wednesday 29 September 2010 19:55:15 Lukas Fleischer wrote:
> On Wed, Sep 29, 2010 at 05:13:18PM +0200, Manuel Tortosa wrote:
> > +<?php echo str_replace("  ", " &nbsp;",
> > nl2br(htmlspecialchars($carr['Comments']))) ?>
> 
> You should definitely use "<pre></pre>" tags here instead of replacing
> every occurence of a whitespace (" ") by its HTML entity ("&nbsp;").

Finally i used instead a set of parsing functions from FluxBB, now CCR can 
show Smilies, patches, and clickable links, and [code] [img] and [b] [i] will 
follow soon.

As example:
http://www.chakra-project.org/ccr/packages.php?ID=11

i'll upload the changes to git asap, today gitorious doesn't work :/





More information about the aur-dev mailing list