Hi I have documents what i need to store within a php variable in the same file. The problem is that the code has single and double quotes, so I can not store it within a variable.
//one of many problem examples
$html ="<span onclick="document.getElementById('video-modal').style.display = 'none';">X</span>";
So the question is how can I put this to a variable and keep it in the same file? I tried this qote `, otherwise I am not sure maybe with ob_start or is there an easier way? Backslashes to escape is also not a solution, because in this way I would have to do a lot of manual work to do this. I also want to avoid doing it into a separate file.