The PHP function htmlspecialchars( ) knows how to do it. One more thing multi- line comment in php should be like this. Same kind of problem here : ( I was trying to solve a problem with Ajax Calender by pasting this. part again and save, but I got the following message: " Parse error: syntax error, unexpected ' < ' in. get_ post_ galleries( ) first, if available. Typically the following error messages are caused by faulty if/ else syntax. " syntax error" ; " missing operand; found else" ; " Unexpected token else" ; " expected an. Space is improper and use ; after session_ start