PHP eqivalent of 'smartypants', and other text educating for XHTML, etc

From: Date: Thu, 04 Sep 2003 16:01:29 +0000
Subject: PHP eqivalent of 'smartypants', and other text educating for XHTML, etc
Groups: php.general 
Request: Send a blank email to php-general+get-161668@lists.php.net to get a copy of this message
Hi all, Does anyone know of a PHP-oriented tool that achieves some of / all of / more than the things that smartypants (http://daringfireball.net/projects/smartypants/) does? For those too lazy for the link, it does smart/curly quote replacement, and a bunch of other cool ASCII => HTML conversions. There is a Perl port, and I'm considering either writing a PHP port, or writing a PHP based script with a similar (but smaller) feature set from scratch. I also want to achieve: - a semantically correct version of nl2br() (converting the text into <p>paragraphs</p>) - automatic list generation, eg: convert: * something * something else * a third, exciting something into: <ul> <li>something </li> <li>something else </li> <li>a third, exciting something </li> </ul> - and some other things i've got in my head So, if anyone has seen anything similar (or part thereof), can they please provide a link or snippet. Please, not interested in non-PHP solutions (exec()'ing a Perl script for example), because I want it to run on a base PHP install, and integrate effortlessly into my CMS. TIA Justin French

« previous php.general (#161668) next »