The dynamic content on this site was stored as raw HTML in a "sqlite":http://sqlite.org database. Some of the text processing, such as escaping of single quotes in the main section of the entries was done by the script that I use to post data. However, the text processing of the titles and categories was done by the "HTML::Mason":http://masonhq.com engine. Processing different parts of the same data in the same way in different places is a good way to get confused, and do stupid stuff. So, I decided to store posts in the database in "textile":http://www.textism.com/tools/textile/ format, and use "Text::Textile":http://search.cpan.org/~bchoate/Text-Textile/lib/Text/Textile.pm inside "HTML::Mason":http://masonhq.com to render the text to HTML. However, I need to go back and 'textilize' prior posts...