Ive been looking for a good HTML modification tool to post code snippets into entries/comments here on LiveJournal, but I couldnt find one that worked how I wanted it to, so I wrote one myself. All it does is replace all
&
with &
, <
with <
, and >
with >
. It leaves quotation marks and spaces the same. It then wraps the result in <pre><code>
and </code></pre>
tags to keep the formatting and make it look like code.Check it out at http://mike.mm1swebcreations.com/lj/ljhtmlparser/ (thanks to
Thanks,
Mike.