# HTML into Flash

**URL:** <https://forum.kirupa.com/t/html-into-flash/171871>\
**Category:** Uncategorized\
**Created:** [December 8, 2005, 9:43pm UTC](https://forum.kirupa.com/t/html-into-flash/171871 "2005-12-08T21:43:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mage](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@Mage](https://forum.kirupa.com/u/Mage)\
**Post date:** [December 8, 2005, 9:43pm UTC](https://forum.kirupa.com/t/html-into-flash/171871/1 "2005-12-08T21:43:30Z")

</div>

Hey’a :D!

So I really need yas help here please.  
I’ve got a Dynamic Textbox in Flash and I’m importing HTML/CSS fine. However if I have any tabs/enters etc in the code it also includes those when displayed in the Dynamic Textbox.

Eg:  
This is the text I want  
\<br /\>  
This should be on a second new line, right under the other line - However it is double spaced because this is on a new line in the HTML file.

This is especially makin it an issue when I pick up data from MySQL - It add’s \<br /\> like I want but also adds new lines because in the MySQL Database the text also has ‘enters’ in it.  
Please help

This is the code I am using to pickup the HTML:

```auto

var styles:TextField.StyleSheet = new TextField.StyleSheet();
styles.load("theCSS.css");

theText.html = true;
theText.styleSheet = styles;

var lv:LoadVars = new LoadVars();

lv.onData = function(contents) {
	theText.text = contents;
}

lv.load("home.php");

```
