Click to See Complete Forum and Search --> : best way to handle random text


r0k3t
12-29-2008, 12:19 PM
So for learning purposes I am doing some AJAX/XML stuff with PHP in the back end. What I am creating is a simple blog site and this is what I want to know.

What is the best way to ensure people don't enter text that will cause the XML to blow up, I know I can URL encode things but I want to let people enter HTML as well.

Is there anything on the web that is good reading on this subject? Maybe something someone can suggest I look further into?

OK - Thanks! Appreciate it.