# Render Text as HTML problems

**URL:** https://forum.kirupa.com/t/render-text-as-html-problems/16247
**Category:** flash
**Created:** [March 22, 2003, 7:22pm UTC](https://forum.kirupa.com/t/render-text-as-html-problems/16247 "2003-03-22T19:22:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ronsgoingcrazy](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@ronsgoingcrazy](https://forum.kirupa.com/u/ronsgoingcrazy)
#### Post date: [March 22, 2003, 7:22pm UTC](https://forum.kirupa.com/t/render-text-as-html-problems/16247/1 "2003-03-22T19:22:55Z")

</div>

Having trouble rendering text as html . . .any ideas what might be going wrong?

[link](http://ron.artcasts.com/test.htm)

i can provide the .fla file if anyone wants to see.

---

<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: [March 22, 2003, 8:08pm UTC](https://forum.kirupa.com/t/render-text-as-html-problems/16247/2 "2003-03-22T20:08:33Z")

</div>

you have to render your texbox as html true and then tell it to read html text.

myTextBox.html = true;  
myTextBox.htmlText = variableName;

---

<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: [March 22, 2003, 8:28pm UTC](https://forum.kirupa.com/t/render-text-as-html-problems/16247/3 "2003-03-22T20:28:39Z")

</div>

can’t i just have the box selected for “render text as html” what is that not working?

---

<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: [March 22, 2003, 8:29pm UTC](https://forum.kirupa.com/t/render-text-as-html-problems/16247/4 "2003-03-22T20:29:56Z")

</div>

myTextBox.html = true;  
myTextBox.htmlText = variableName;

myTextBox.html = true renders your textbox as HTML.

myTextBox.htmlText = variableName reads the text as HTML.

HTML formatted Text only works in a textbox if the text is inputted into the textbox through AS or an external file.

---

<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: [March 22, 2003, 8:31pm UTC](https://forum.kirupa.com/t/render-text-as-html-problems/16247/5 "2003-03-22T20:31:02Z")

</div>

```php
myText = "<B>This text is bold</B>";
myTextBox.html = true;
myTextBox.htmlText = myText;

```

That assumes your textbox instance name is “myTextBox”.
