So, I have a bunch of code that I\'m pulling from a column in MySQL. This code includes hidden characters, such as \"\\t\" and \"\\n\".
I\'m trying to get that raw c
Please note that in PHP "string" and 'string' are actually the same thing.
htmlentities() just converts quote characters and other special characters to their HTML entity equivalent. See this page
Escape your slashes and (optionally) enclose the code that you want explicity shown in 'pre' tags. The pre tags are not necessary but can help readability.
Here is the code I tested:
".$value."";
echo $value;
?>