Michael (masterslacker) wrote in lj_nifty,
Michael
masterslacker
lj_nifty

HTML-for-LiveJournal Modification Tool

Hey all,

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 &amp;, < with &lt;, and > with &gt;. 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 kunzite1 for hosting it), and tell me what you think of it, ie. if it needs fixing :)

Thanks,

Mike.
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 17 comments