# Loading in html trouble

**URL:** <https://forum.kirupa.com/t/loading-in-html-trouble/175940>\
**Category:** Uncategorized\
**Created:** [January 19, 2006, 12:36am UTC](https://forum.kirupa.com/t/loading-in-html-trouble/175940 "2006-01-19T00:36:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeaceFrog](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@PeaceFrog](https://forum.kirupa.com/u/PeaceFrog)\
**Post date:** [January 19, 2006, 12:36am UTC](https://forum.kirupa.com/t/loading-in-html-trouble/175940/1 "2006-01-19T00:36:56Z")

</div>

Hello,

I’ve bumped in to this, to me, odd problem when loading in any html. It loads in, where placed putting the format to text (eg \<B\>) but, spaces between an ending tag of one, and the begin tag of another formatted piece of text, dissapear :cross-eye

eg something like this:

```auto

<html>
<body>
<u>hello</u> <u>my</u> <u>name</u> <u>is</u>
</body>
</html>

```

would show : hellomynameis instead of hello my name is

I load this html using loadVars

ActionScript Code:

[FONT=Courier New][LEFT]\</p\>  
\<p\>readContent = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000ff]LoadVars[/COLOR]COLOR=#000000[/COLOR];\</p\>  
\<p\>readContent.[COLOR=#0000ff]onData[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]\</p\>  
\<p\> [COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]someText[/COLOR].[COLOR=#0000ff]htmlText[/COLOR] = bla;\</p\>  
\<p\>[COLOR=#000000]}[/COLOR];\</p\>  
\<p\>readContent.[COLOR=#0000ff]load[/COLOR]COLOR=#000000[/COLOR];\</p\>  
\<p\>

[/LEFT]

[/FONT]

into a input textfield (tried on a dynamic textfield with the same result)

i traced the contenttype, and that is what flash sais it wants in flash help : _application/x-www-form-urlencoded._

Is what i want - being able to load in HTML, underlining words without having underlined space in between, into a textfield - possible without having to mess in the html code - i “found out” replacing all spaces in the html file for %a0 does work, i assume because Flash sees it as some character orso - but well i assumed flash would/could, should be able to load in HTML properly :hangover:

Any help, sympathising comments, anything! very much appreciated :beam:

peace
