PHP strip_tags - splitting tags into an array
<p>I have a big html content entry. I need to split only the plain text into separate entries in an array, so that I can run it through a translation tool and then replace it into the original html.</p>

<p>I've managed to clean it out and then split lines into an array, but the text <code>...to do this &lt;a href="#" title="blah"&gt;click here&lt;/a&gt;</code> comes back as <code>...to do this click here</code>. </p>

<p>doing a <code>str_replace</code> on that text won't match anymore because of the <code>a</code> tag. </p>

<p>So, I need a way to turn the tags that would normally be stripped using <code>strip_tags</code> into an inserted value that i can use to explode the string with. </p>

<p>any suggestions?</p>
