# HTML formatted external text in flash bug?

**URL:** <https://forum.kirupa.com/t/html-formatted-external-text-in-flash-bug/62104>\
**Category:** flash\
**Created:** [August 25, 2004, 1:31am UTC](https://forum.kirupa.com/t/html-formatted-external-text-in-flash-bug/62104 "2004-08-25T01:31:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![newflavour](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@newflavour](https://forum.kirupa.com/u/newflavour)\
**Post date:** [August 25, 2004, 1:31am UTC](https://forum.kirupa.com/t/html-formatted-external-text-in-flash-bug/62104/1 "2004-08-25T01:31:40Z")

</div>

Hi folks,

I have no issues with loading text etc. However I am noticing a strange thing happen when parsing in html code.

I have a text file which looks similar to:

```auto

  &sectionCopy=<font size="16">blah blah big text</font>
  blah blah blah <b>bolded text</b> more text.
  

```

the font size increases where asked to however the bold doesn’t work. instead the contents of the bold tag are not output at all. as if it is working like a trim or similar.

has anyone else come accross this in MX04?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2004, 2:13am UTC](https://forum.kirupa.com/t/html-formatted-external-text-in-flash-bug/62104/2 "2004-08-25T02:13:26Z")

</div>

ok, I have got it to work however I don’t think it’s the right way of going about it.

my text field has a name of: varSectionCopy  
with ‘sectionCopy’ coming from the text file.

I have AS loading the text file and doing the following:  
[snip]  
varSectionCopy.htmlText = this.sectionCopy.split("  
").join("  
");  
[/snip]

The text file had all of the neccessary html tags attributes, all with the correct syntax and nesting. \<font\>\<b\>\</b\>\</font\> etc…etc…

However, with the ‘render as html’ option turned on for the text field it only renders the \<font\>\</font\> tag. I needed to then turn on the ‘bold’ option in the properties inspector to get bold working.

I played a little more and ‘italics’ won’t render as html no matter what I do.

I have tried this with over 10 different fonts including all the usual default fonts.

Go figure. I would have thought ‘render as html’ would have been enough to, ahhmm, derr, ‘render as html’.

If anyone else has experienced similar issues and found a cleaner way to deal with it I’d be very interested in your feedback.
