Forums on the internet can block people from posting HTML tags in their posts. how is that done in php? I mean HTML tags show up as is in the tweets on twitter and in the comment space on Facebook? How is that done?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
htmlspecialchars() did the job very nicely. It required me to do some more processing, like creating a new function that would convert the HTML entity equivalents back into special chars.