# HTML text to normal text

**URL:** <https://forum.kirupa.com/t/html-text-to-normal-text/295808>\
**Category:** flash\
**Created:** [September 4, 2009, 4:47pm UTC](https://forum.kirupa.com/t/html-text-to-normal-text/295808 "2009-09-04T16:47:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaedo](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Post date:** [September 4, 2009, 4:47pm UTC](https://forum.kirupa.com/t/html-text-to-normal-text/295808/1 "2009-09-04T16:47:48Z")

</div>

I would like to take text that was rendered into HTML text and create a string that includes all of the HTML tags.

So  
I my swf loads text containing HTML tags from external file  
swf displays text as htmlText into an input box  
user edits text  
(ok so far)  
swf then gets the text with HTML tags and sends to external file.

Currently when I do this it strips out the HTML tags.

eg

```auto
var html_string:String = "<b>blah</b>";
inputTextBox.htmlText = html_string;

var html_string2:String = inputTextBox.text;

trace(html_string);//<b>blah</b>
trace(html_string2);//blah

```

so you see it strips out the HTML tags. Thus the malfunction when I save and reload it to an external file.

Any help of suggestions here would be greatly appreciated.
