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

  • friends history

    many years ago, we had the marnanel joule that kept track of our friends history. but it went away around 2011. in fact a lot of livejournal has…

  • ArtLJ

    I was screwing around with custom styles earlier when I stumbled across artlj ( Translations available at Google and Microsoft). It…

  • No more grey comment button!

    Last night I hacked together a Greasemonkey script so that anyone affected by the grey comment button problem can post a comment. Any comments or…

  • 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

  • friends history

    many years ago, we had the marnanel joule that kept track of our friends history. but it went away around 2011. in fact a lot of livejournal has…

  • ArtLJ

    I was screwing around with custom styles earlier when I stumbled across artlj ( Translations available at Google and Microsoft). It…

  • No more grey comment button!

    Last night I hacked together a Greasemonkey script so that anyone affected by the grey comment button problem can post a comment. Any comments or…