<p>I'm parsing text from a file and storing it in a string.  The problem is that some of the text in the original files contains <code>ASCII art</code> and whatnot that I would like to preserve.  When I print out the string on the <code>HTML page</code>, even if it does have the same formatting and everything since it is in <code>HTML</code>, the spacing and line breaks are not preserved.  What is the best way to print out the text in <code>HTML</code> exactly as it was in the original text file?<br>
I would like to give an example, but unfortunately, I was not able to get it to display correctly in this markdown editor :P<br>
Basically, I would like suggestions on how to display <code>ASCII art in HTML</code>.</p>

When you print the data use
```
nl2br()
```
to convert
```
\n
```
and
```
\r\n
```
into
```
<br>
```