PHP HTML variable
Posted
by
Abakiz Myth
on Stack Overflow
See other posts from Stack Overflow
or by Abakiz Myth
Published on 2012-11-24T10:57:50Z
Indexed on
2012/11/24
11:05 UTC
Read the original article
Hit count: 160
php
|coldfusion
In Coldfusion we have the variable:
<cfsavecontent name="HTML_content">
<div class="test_div" style="color:#FFF;">Test</div>
</cfsavecontent>
Within PHP there seems to be no way of doing this without some really hacky function or escaping double quotes. I'm trying to create emails (large html documents) within the same page by saving the email content and simply mailing it but it seems like there's no way of doing this within PHP without using $var = "\"crap\""
;
Can somebody point me in the right direction?
© Stack Overflow or respective owner