Getting rid of quotes when printing data


Posted on 16th Feb 2014 07:03 pm by admin

Hi Guys, I use the filter_var FILTER_SANITIZE_STRING to filter the textarea input. The function escapes any quotes (which is good) but when I print the data into the html the data is printed with the backslashes. How do I get rid of them ?

No comments posted yet

Your Answer:

Login to answer
122 Like 15 Dislike
Previous forums Next forums
Other forums

using explode() to fill in checkboxes
Hi

I have a field stored in a table that contains regions in the UK separated by commas. Ther

Sum of Values in an Array
This is probably really simple... but it's been years since I've written anything, so bare with me!<

Specific name typed, specific image shown on html page
Hello,

Fairly new to PHP and was curious if someone might know how to solve a fairly simple r

elseif help!
OK so I'm new to the site, as well as PHP altogether (Trying my hand at managing an online RPG) and

Include with Parameters
In a particular page I would like to include a file that requires $_GET parameters.

when I go

Internal Server Error issues
This has been bothering me for weeks and I've been trying to solve it without asking for help, but e

Can't shake the "Warning: include()" error
I've just uploaded my site to a new server and where I have PHP include tags in my HTML, the browser

Do While statement
hi guys,

This may sound trivial but im new to php and as part of an assignmenti have to const

form problem
below in the form action, i've put "test.php?w=$sw&h=$sh" but when i input the for

Access website from only 1 computer...?
One of my customers wants his website to only be accessed by people in which they bought the website

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash