You had suggested using this .. and it works in html5 and now I'm going back through flash which sometimes krpano fallsbacks to for older macs with HW accel disabled...
<data name="htmldata2">
<![CDATA[
<?php print !empty($desc[$i]) ? '<p>'. str_ireplace("&#39;","'",xmlEntities($desc[$i])) .'</p>' : ''; ?>
]]>
</data>
TLDR;
textfield won't display properly with cdata