Cathode Tan - Games, Media and Geek Stuff
logo design by man bytes blog

Thursday, August 24, 2006

Updated Comments Template

OK, here is an updated version of the sidebar comments (for use in Blogger templates), but won't break with double quotes:

That works better. Basically I'm using a textarea here to feed in the comment itself. A textarea's value is freefrom and easily accessible by javascript (and easily made invisible by CSS). So it eliminates the double quote bug completely.

Oh yeah, I got mad skills.


jvm said...

I'm currently not using comment bodies because they can contain HTML. If there is a <i> tag in the snippet of the comment used in the sidebar that isn't closed, then it propagates through the rest of the sidebar below that. Ideas?

Josh said...

you might try putting a gratiutous table tags in between each comment. I don't think most browsers render such style tags across tables (certainly within them though)