extract out text in each line and put it in seperate variables with javascript
<p>I have the following address which is in a paragraph with no great way to select the individual text areas within. I do not have access to this code. I want to extract out each line and put the text values in a variable for each type. Not sure what would be the best way to do it. </p>

<p>Use <code>.split('&lt;br&gt;')</code> ? 
then use <code>.split('&amp;nbsp;')</code> to separate the state from the zip
same with city and state
I am a little lost here.</p>

<p>Here are the variables I would like. </p>

<p>company name,
person's name,
address1,
city,
state,
country,
zip code,
phone,</p>

<p>Here is the paragraph that i have. I do not need the '(Residential Address)'</p>

<pre><code>&lt;p&gt;
XYZ Inc&lt;br&gt;
John&amp;nbsp;Smith&lt;br&gt;
555 Anywhere Street&lt;br&gt;
New York, NY&amp;nbsp;11150&lt;br&gt;
United States&lt;br&gt;
212-555-1212&lt;br&gt;

 (Residential Address)


&lt;/p&gt;
</code></pre>
