I (now) agree that you have successfully reduced the code size, but in reviewing it, I have become more concerned about its efficiency/readability. My gut instinct is that a more RegExp-ish solution exists to address these issues, but I've yet to discover it.
I am now thinking about how to dynamically build a bookmark-ready HTML() library link, then eval its href. Once the library is loaded, the remainder of the page could be built with the library. (I'm warming up to the5k.org contest next Fall!)
Originally posted by Algorithm
Works fine for me; IE6, NS7, and NS4 all give identical results to your implementation.
I have the "function()" part in there, it's near the beginning of the code and is added to each template string. Look again and you'll see it.
The copyright was exised to save space, as you already had a comment in the code explaining the same thing, and status-bar messages often interfere with browsing. If you'd like to put it back in, go right ahead.