# Importing HTML Text Spacing issues...PLEASE HELP, I'll $$PAY$$$

**URL:** <https://forum.kirupa.com/t/importing-html-text-spacing-issues-please-help-ill-pay/291493>\
**Category:** Uncategorized\
**Created:** [June 30, 2009, 2:22pm UTC](https://forum.kirupa.com/t/importing-html-text-spacing-issues-please-help-ill-pay/291493 "2009-06-30T14:22:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoyle\_billy](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@hoyle\_billy](https://forum.kirupa.com/u/hoyle_billy)\
**Post date:** [June 30, 2009, 2:22pm UTC](https://forum.kirupa.com/t/importing-html-text-spacing-issues-please-help-ill-pay/291493/1 "2009-06-30T14:22:58Z")

</div>

Hello, I’m importing some html text into a Dynamic Text Field(services\_txt). Here’s the code:

var url:String = “content/servicesoffered.html”;  
var loadit:URLLoader = new URLLoader();  
loadit.addEventListener(Event.COMPLETE, completeHandler);  
loadit.load(new URLRequest(url));

function completeHandler(event:Event):void {  
services\_txt.htmlText = event.target.data ;  
}

The html imports fine, but for every space between tags my text field adds a space. For example:

\<ul\>  
\<li\>hello\</li\>  
\<li\>hello 2\</li\>  
\<li\>hello 3\</li\>  
\<li\>hello 4\</li\>  
\</ul\>

looks like

[LIST]  
[\*]hello  
[/LIST]

[LIST]  
[\*]hello 2  
[/LIST]

[LIST]  
[\*]hello 3  
[/LIST]

[LIST]  
[\*]hello 4  
[/LIST]

instead of:

[LIST]  
[_]hello  
[_]hello 2  
[_]hello 3  
[_]hello 4  
[/LIST]

Any ideas???
