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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to