MrCat
04-10-2007, 03:33 AM
Hi. I have a site where people can post photos and also captions for the photos.
I'm saving the captions in simple text files for including with the HTML. Of course, I don't want someone to put "<script>" in a caption input form, but what else should I filter out?
Is it enough just to destroy all instances of "<"? I want to give people the freedom to include brackets and hyphens etc if possible.
Any ideas appreciated!
I'm saving the captions in simple text files for including with the HTML. Of course, I don't want someone to put "<script>" in a caption input form, but what else should I filter out?
Is it enough just to destroy all instances of "<"? I want to give people the freedom to include brackets and hyphens etc if possible.
Any ideas appreciated!