View Single Post
Old 05-22-2026, 04:58 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 83,537
Karma: 153646249
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
[
Quote:
Originally Posted by gilmorehp View Post
Hi, I know there must be an easy way do do this, i want to replace the following

example:

<p class="class_s9h">sample text sample text</p>

replace with

<p class="text"><i class="italic">sample text sample text</i></p>

I want to keep the original text but change the "class"

what do I put in the find/replace field


Thanks in advance!
A very simple thing you can do is use the TagMechanic plugin. You can easily change classes and you could put italic in the CSS. It's really simple with this plugin. I use the calibre version a lot.
Code:
font-style: italic;
Just a quick note, don't do <i class="italic"> that's overdoing it. All you need is <i>.
JSWolf is online now   Reply With Quote