<p>I have a string</p>

<pre><code>var s:String = "This is a line \n This is another line.";
this.txtHolder.text = s; //.text has \n, not a new line
</code></pre>

<p>and i want to put it into a text area, but the new line character is ignored. How can i ensure that the text breaks where i want it to when its assigned?</p>

Try
```
```
"This is a line {\n} This is another line."
```
```
Alternatively, use the htmlText attribute and use
```
```
"This is a line <br> This is another line."
```
```