Quote:
Originally Posted by firsikov
Thanks a lot. It works. But! If you have code like that:
Code:
<p class="text">some text</p>
<blockquote class="email">
<p class="text">some <i>text</i></p>
<p class="text"><b>some</b> text</p>
<p class="text">some text</p>
</blockquote>
<p class="text">some text</p>
<p class="text">some text</p>
<blockquote class="email">
<p class="text">some <i>text</i></p>
<p class="text"><b>some</b> text</p>
<p class="text">some text</p>
</blockquote>
<p class="text">some text</p>
First opened <blockquote> and last closed </blockquote> will work too. And when i finish replace all, result will be like that:
Code:
<p class="text">some text</p>
<blockquote class="email">
<p class="newclass>some <i>text</i></p>
<p class="newclass><b>some</b> text</p>
<p class="newclass>some text</p>
</blockquote>
<p class="newclass>some text</p>
<p class="newclass>some text</p>
<blockquote class="email">
<p class="newclass>some <i>text</i></p>
<p class="newclass><b>some</b> text</p>
<p class="newclass>some text</p>
</blockquote>
<p class="text">some text</p>

|
Sorry, I didn't run it all the way through. Just ran enough replace alls to check it was making the changes you wanted. But, it will eventually match across the blockquotes. You need to block that, but I can't think of how to do that at the moment.