I have a code which is quote TXT via java script. The Txt is just a PHP string, it works wonderful on a single line or txt but if someone has <br> or <p> in it the code does not work, okay the quote does not need formatting so I can remove via str_replace the <br> <p> and the likes but the txt then has "white space" like
Before
This is line one<br>
Line 2
After
This is line one
Line 2
So it shows on two lines but does not have the<br> in it I want it to show like this
This is line one Line 2
Also I know this by look and the page source when displayed
Any ideas?