Here is a simplified version of my code that I am having a problem with.
$variable = "{\\\"JSON" //long JSON string created in Javascript with JSON.stringify
?> <input type="text" name="somename" value="<?php echo $variable; ?>"/> <?php
The input box only contains {\ I need a way to escape the entire JSON string
Thanks Alex