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

Get to know your fellow coder
I think it's time we got personal around here. There's a lot of code swapping and a few members kno

opening a window with after form submission
I know this this forum has nothing to do with JS, but i'm trying to use it with my php script.
<

help with contest script
I would like to code a contest script to my site but i don't know how. Could someone just give me pu

Entering Data Problem
Code: $result = mysql_query("SELECT * FROM flights");
while ($row = mysql_fetch_array($

Comment Mod System Effects all rows...
Sorry if its confusing but here is whats going on: I have a table in a database called comments and

Selecting an "empty" date formated field
How do you select an "empty" date field? I've tried the few ways I can think.
SQL> select

Request.UrlReferrer
I need to make it so that a page can only be loaded when a button is clicked on a specific page. I d

Using real time in php
I'm very average at PHP and im looking to introduce time to something on my site.
Its a sports si

Kill a process
I have a question - how can I kill a process from a command line or by using Oracle SQL Developer? I

RadioButtonList data selection
view plaincopy to clipboardprint?

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