How can I pass this script through xml?

Hi!
I need to place a widget on a flash web page. How can I do this via xml?

Here is the script:

<script src="https://www.crossloop.com/widgetjs/pro_contact_widget.js?accountid=1183293" type="text/javascript" charset="utf-8"></script>

Here is the XML:

<pageText><![CDATA[
Get Computer Help Now!
]]></pageText>

<pageText><![CDATA[
<a href="#">
<font color="#7794a4">></font>  At pharetra augue nec augue am<br>
<font color="#7794a4">></font>  Tincidunt ac, viverra sed, nulla onec<br>
<font color="#7794a4">></font>  Quisque diam lorem nterdum<br>
<font color="#7794a4">></font>  Scelerisque vitae, pede onec eget tela<br>
<font color="#7794a4">></font>  Lacinia fermentum onec in velit vel<br>
<font color="#7794a4">></font>  Vestibulum iaculis lacinia est roin dictu<br>
<font color="#7794a4">></font>  Fusce euismod consequat ante
<br><br>
<font color="#ffffff"><a href="asfunction:_root.more_click_func,1">> more info</a></font>
]]></pageText>
DantechITAsked:
Who is Participating?
 
strickddCommented:
If you are trying to pass something like that through XML, you need to HTML Encode it so that the XML characters are escaped properly:

> becomes &gt;
< becomes &lt;
etc.
0
 
DantechITAuthor Commented:
anyone?

should I use cdata?
0
 
leakim971PluritechnicianCommented:
0
 
DantechITAuthor Commented:
Ok, so i changed the < and > tags but it still shows up weird.


<pageText><![CDATA[
&lt;script src="https://www.crossloop.com/widgetjs/pro_contact_widget.js?accountid=1183293" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;
<a href="#">
<font color="#7794a4">></font>  Ultrices posuere cubilia urae uspendis<br>
<font color="#7794a4">></font>  At pharetra augue nec augue am<br>
<font color="#7794a4">></font>  Tincidunt ac, viverra sed, nulla onec<br>
<font color="#7794a4">></font>  Quisque diam lorem nterdum<br>
<font color="#7794a4">></font>  Scelerisque vitae, pede onec eget tela<br>
<font color="#7794a4">></font>  Lacinia fermentum onec in velit vel<br>
<font color="#7794a4">></font>  Vestibulum iaculis lacinia est roin dictu<br>
<font color="#7794a4">></font>  Fusce euismod consequat ante
<br><br>
<font color="#ffffff"><a href="asfunction:_root.more_click_func,1">> more info</a></font>
]]></pageText>
0
 
DantechITAuthor Commented:
leakim971:

I looked through the link that you provided but did not see anything that would help me. Could you please point it out for me? Maybe I overlooked the information.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.