tag:help-archives.hannonhill.com,2010-02-09:/discussions/general/361-un-minimizing-attributes-written-with-php-in-tinymceCascade CMS: Discussion 2018-10-18T20:36:20Ztag:help-archives.hannonhill.com,2010-02-09:Comment/90225922011-08-02T13:52:39Z2011-08-02T14:07:35ZUn-Minimizing Attributes Written With PHP In TinyMCE <div><p>Let me know if there is a better way to do this or a
configuration I can use.<br>
I think this is a "feature" of HH implementation of TinyMCE, but I
noticed that the editor would "correct" my attributes when I wrote
them properly in an PHP echo statement.</p>
<pre>
<code>echo "<option value=\"$abc\" selected=\"selected\">$abc</option>\n";</code>
</pre>
<p>would save as</p>
<pre>
<code>echo "<option value=\"$abc\" selected="selected">$abc</option>\n";</code>
</pre>
<p>which of course breaks PHP. No matter how I tried to trick it
into using escaped quotes it always changed back to unescaped.<br>
My solution was to use single quotes and concatenate the variables
into the string:</p>
<pre>
<code> echo ' <option value="'.$abc.'" selected="selected">'.$abc.'</option>'."\n";</code>
</pre></div>c-siemstag:help-archives.hannonhill.com,2010-02-09:Comment/90225922011-09-22T18:09:58Z2011-09-22T18:09:58ZUn-Minimizing Attributes Written With PHP In TinyMCE <div><p>I'll chalk this up to a feature of TinyMCE. The problem is we've
have 100's of lines of PHP code that use minimized attributes.
Having to rewrite them in this goofy form is going to painful.</p></div>c-siems