免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2010年12月15日 星期三

special char escaping in gadget

To put html code into the "HTML/JAVASCRIPT gadget" of Blogger(Blogspot),
some special chars need to be escaped :


& === & ???
< === &lt;
> === &gt;
" === &quot; ???
'=== &apos; ???

[example ] params for flash swf movie

<param value="
&dataTextFieldStyle=<p align='center'><font face='Arial' color='#000000' size='18'><b>[]</b></font></p>&
">

should be replaced by

&lt;param value="
&dataTextFieldStyle=&lt;p align='center'&gt;&lt;font face='Arial' color='#000000' size='18'&gt;&lt;b&gt;[]&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&
"&gt;




[ref]
http://code.google.com/apis/gadgets/docs/fundamentals.html
http://3hlot.blogspot.com/

沒有留言:

張貼留言