How to find and replace a div in a text response from AJAX
<p>How would I be able to find and replace a div (or other tag) in HTML which is saved as text in a  variable? I get the HTML as a text response from ajax:</p>

<pre><code>$.ajax({
    url: 'page.pgp',
    success: function(result) {
    // here I want to find certain HTML tag
        // in result variable and replace it with something else
    }
});
</code></pre>
