alter some attributes of an html/xml string
<p>I have some strings that are a sequence of html paragraphs:</p>

<pre><code>&lt;p style="text-align: justify;"&gt;&lt;strong&gt; strong text&gt; &lt;a href=\"skhf\"&gt;alink&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; another par &lt;/p&gt;
</code></pre>

<p>I want to change paragraph and link style, so adding/removing attributes. Moreover I'd like to remove some paragraphs also, according to their content.
I guess I have first to convert this string in an xml structure and then revert it back to string right? Any ideas?</p>
