View Single Post
Old 10-18-2021, 09:32 AM   #40
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by firsikov View Post
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.
davidfor is offline   Reply With Quote