I have a raw feed of some text within the body tag of an HTML page. I need to run a function on it to turn it into a Javascript string variable. However, there are literal line breaks in the HTML page (which are obviously not permissible in JS strings).
Here's an example of the source of the page I'm working with:
<html>
<head></head>
<body>
BLDG||0|EOR|
PLNC||0|EOR|
SUBD|Pine Manor|1|EOR|
CITY|Fort Myers|1|EOR|
</body>
jQuery is permissible. How do I turn this all into a Javascript variable while removing the literal line breaks so that the variables work?