# HTMLText and unwanted line breaks

**URL:** https://forum.kirupa.com/t/htmltext-and-unwanted-line-breaks/261057
**Category:** flash
**Created:** [May 22, 2008, 6:20pm UTC](https://forum.kirupa.com/t/htmltext-and-unwanted-line-breaks/261057 "2008-05-22T18:20:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![danthemilk](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@danthemilk](https://forum.kirupa.com/u/danthemilk)
#### Post date: [May 22, 2008, 6:20pm UTC](https://forum.kirupa.com/t/htmltext-and-unwanted-line-breaks/261057/1 "2008-05-22T18:20:13Z")

</div>

Has anybody had trouble with HTMLText displaying line breaks for every tag you insert? for example if I insert \<a\>\</\> it treats it as \<br\> \<a\> \</a\> \</br\>. whats up?

---

<div class="post-metadata">

### Author: ![adnan794](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@adnan794](https://forum.kirupa.com/u/adnan794)
#### Post date: [May 22, 2008, 10:33pm UTC](https://forum.kirupa.com/t/htmltext-and-unwanted-line-breaks/261057/2 "2008-05-22T22:33:04Z")

</div>

Hmm I guess flash only support a limited ser of html tags. But \<a\> is supported in flash the only thing is flash is not doing the advance parsing of html tags like u can do with other languages. so its just a guess but might work try closing the \<a\> tag properly rather than using the short hand version\</\>

so try this  
\<a\>\</a\>

also to get rif of unwanted spaces u can alwas use textfield.condenseWhite = true;

hop ethis works

---

<div class="post-metadata">

### Author: ![spasticfantastic](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@spasticfantastic](https://forum.kirupa.com/u/spasticfantastic)
#### Post date: [May 23, 2008, 2:19pm UTC](https://forum.kirupa.com/t/htmltext-and-unwanted-line-breaks/261057/3 "2008-05-23T14:19:16Z")

</div>

Html support is dire… would be really ace if we could render html as a browser would.
