tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/337-start-code-and-end-code-within-quotesCascade CMS: Discussion 2011-04-07T22:13:03Ztag:help-archives.hannonhill.com,2010-02-09:Comment/52699992011-02-10T21:55:26Z2011-02-10T21:55:27Zstart-code and end-code within quotes<div><p>Oops. . that did not display properly in the message.</p>
<p>Basically any symbols between start-code and end-code are
converted to ascii codes if the start-code and end-code are within
quotes (" ").</p></div>Robert Whitakertag:help-archives.hannonhill.com,2010-02-09:Comment/52699992011-02-10T22:09:30Z2011-02-10T22:09:32Zstart-code and end-code within quotes<div><p>more...</p>
<p>It seems to be only within html 'img' tags that this occurs.</p></div>Robert Whitakertag:help-archives.hannonhill.com,2010-02-09:Comment/52699992011-02-11T14:08:58Z2011-02-11T14:08:58Zstart-code and end-code within quotes<div><p>Robert,</p>
<p>I believe the reason that does not work is because it is invalid
XHTML which is required within Cascade. The workaround I have used
is to echo the entire line like this:</p>
<pre>
<code><!--#START-CODE
<?php
echo '<img alt="Cascade Post" id="print_logo" src="$HEADER_IMAGE" />';
?>
#END-CODE-->`</code>
</pre>
<p>I know it's not ideal but that is the only way I have found to
make it work.<br>
Kris</p></div>Kristag:help-archives.hannonhill.com,2010-02-09:Comment/52699992011-02-18T20:33:56Z2011-02-18T20:33:56Zstart-code and end-code within quotes<div><p>Kris,</p>
<p>That is the correct workaround. XHTML restrictions make it
difficult to impossible to embed some characters into attribute
values (<code>"..."</code>), so we recommend putting the entire
element into an <code>echo</code> statement just like you have
above.</p></div>Ross