I’m trying to scrape some data with php. When inserting the data into mysql table (xampp) the appostrohe appear like so – '
How do I get rid of this characther.
I used addslashes and mysql_real_escape_string and I stell can’t get rid of 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.
'is the proper HTML for an apostrophe. If you’re scraping from someone’s website, you’re going to get their HTML, which in this case is apparently properly escaped.You can run the text through
htmlspecialchars_decode()if you want to convert HTML entities to plain-text.