xb95 (xb95) wrote in lj_dev,
xb95
xb95
lj_dev

Minor ljviews.pl Patch: nohtml

Have you ever run into the problem with someone posting HTML in their journal that is just totally trashing your friends page? Images you'd rather not see while you're at work? Just dislike people who like to post tables and other such things?

No more!

Okay, enough of the radio announcer crap. I put together a simple (8 line!) patch to ljviews.pl that simply checks for nohtml=1 on lastn and friends view generation. If present, it escapes everything except LiveJournal specific tags. I.e. this comes out as <b>this</b> but the lj-cut they put in there stays and works fine.

It has been tested on my goathack: normal, with nohtml=1.

The patch is simple, 8 lines:

ljviews.pl.patch
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 

  • 3 comments