jowilson.org

Entityify!

Okay, so this one was easy. Occasionally I like to post IRC transcripts on my weblog. Alas, Wordpress thinks that <the_W> is really the_W tag, so every time I try to do this, I wind up spending about 15 minutes or more converting all of the < and > characters to &lt; and &gt; entities.

I googled for an entity converter, but I didn't get anything useful on my first two google tries, so I thought to myself, this must be pretty easy to write in php. It was.

Input:




Output:


Here is what the above text will look like when it gets pasted into your html document:


Site links:

   [ home | crazy but able (a weblog) | 8 eyes (a photolog) | pictures (hosted on this site) ]

 

   [ contact me ]

words/images/design remix
© 2010 jpw. (e-mail: feedback at jowilson.org)

original design © 2010 aq. (e-mail: comments at domesticat.net)
modified/used/exploited with permission.