# HTML in an XML Attribute?

**URL:** https://forum.kirupa.com/t/html-in-an-xml-attribute/281537
**Category:** flash
**Created:** [February 10, 2009, 12:33pm UTC](https://forum.kirupa.com/t/html-in-an-xml-attribute/281537 "2009-02-10T12:33:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Angelcrazy](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@Angelcrazy](https://forum.kirupa.com/u/Angelcrazy)
#### Post date: [February 10, 2009, 12:33pm UTC](https://forum.kirupa.com/t/html-in-an-xml-attribute/281537/1 "2009-02-10T12:33:55Z")

</div>

Hi, I am bringing into a AS3 flash swf an xml with a list of images then dynamically finding each attribute it has and he value. Now to save coding im just trying to fill a dynamic text box with one of the values, but I need to know how to add line breaks:

This is what I have:  
\<IMAGE FULL=“1.jpg” THUMB=“thumb.jpg” TITLE=“Title” IURL=“[http://www.uk.com](http://www.uk.com)” HTMLTXT="PHP: ADVANCED BLA BLA " /\>

This is what im trying to do:  
\<IMAGE FULL=“1.jpg” THUMB=“thumb.jpg” TITLE=“Title” IURL=“[http://www.uk.com](http://www.uk.com)” HTMLTXT=“PHP: ADVANCED\<br\>BLA BLA\<br /\>” /\>

Obviously this doesnt work, but what would, all other forums use the \<this\>BLA BLA\<br /\>\</this\> format with CDATA etc, but I need it in a value of the HTMLTXT attribute, everything else is working ha.

Any thoughts? or solutions!

David
