I am using mysql db and PHP code.
I store value like this in db <u><strike><i><b>Opinion</b></i></strike></u>
that is with some editor. so how do I display it so that, it takes all the tags given to it?
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.
You should always use
htmlspecialchars()function when filling form values.As well as textarea content.
It will preserve all your tags as is.