Questions tagged [stripslashes]

A PHP library function for un-quoting a quoted string or paraphrased stripping slashes from a string. Questions are about the workings or issues with the stripslashes function.

Un-quotes a quoted string. The function returns a string with backslashes stripped off. (\' becomes ' and so on.) Double backslashes (\) are made into a single backslash ().

Example (from PHP manual)

<?php
$str = "Is your name O\'reilly?";

// Outputs: Is your name O'reilly?
echo stripslashes($str);
?>

Links

108 questions
-1
votes
2 answers

PHP can't strip slashes when trying to echo mysql escaped data to XML using DOMDocument

I inserted in database some HTML text after escaping them using mysql_real_escape_string, and I am trying to add them to XML document to be read by flash file, I am using DOMDocument class to make the XML document, here's my tries and outputs: try…
Kareem Mohamed
  • 251
  • 3
  • 14
-1
votes
3 answers

Stripslashes doesn't work for my magic-quotes in PHP

I have started using magic quotes and I have encountered a small problem, an easy problem I guess which I can't figure out. I wan't to use striplashes which it does not remove when I write something in my textarea Code:
Alexein
  • 666
  • 1
  • 11
  • 19
-2
votes
1 answer

Php - Remove backslash from MySQL

I'm using a 3rd party CMS system and am creating a page that has a designated print layout but when I'm returning the data I'm getting unwanted backslashes. IE. \"Scrutiny Process\" rather than "Scrutiny Process". I'm aware of the strip slashes…
1 2 3 4 5 6 7
8