[Solved] How to echo backslash then quote? [closed]


You are adding echo to a variable $text, if this is in javascript then you should echo the value using php in your javascript – like this var test=<?php echo $test; ?>. If you are using php then you should try implementing @Guilherme Nascimento’s answer, but concatanating not adding echo to your $text variable. So you should have something like this:

    $text="<p align="center">
<iframe src="https://stackoverflow.com/questions/20927664/aufgaben".$_COOKIE["auf_name"]."https://stackoverflow.com/".$_COOKIE["auf_name"].".html" width="322" height="497" frameborder="0"></iframe></p>";

By using the ' in echo you escape the " character

solved How to echo backslash then quote? [closed]