So I’ve just set up a simple little blog utility for the website. It’s what you see being used on the front page and on this page as well. I don’t call it a blog app because it’s only like 200 lines of code and it’s missing tons of functionality. I mean you can add, edit, or delete posts but there’s not really a whole lot more to it than that.
One neat thing I learned about while writing this script is that if you want to feed your database apostrophes and quotes etc without screwing things up, you need to use the escape and unescape functions in vbscript (assuming you’re developing in asp). It’s pretty nifty: escape(”This text would mess things up because of the ‘apostrophes’.”) converts all the bad characters to nice web-friendly characters; Unescape(”So%20I%27ve%20just%20set%20
up%20a%20simple%20little%20blog%2
0utility%20for%20the%20website”) converts that awful mess of converted text back to something that we humans can read without getting a headache. There is one problem, however: if you want to include some html in your post, say a link, you can’t. It’ll just convert it like everything else. I’ve got to work that one out still.