View Single Post
Old 09-30-2015, 07:58 AM   #8
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by davidfor View Post
Alternatively, you can use Diap's Editing Toolbag plugin. One of its functions is will do exactly this type of replacement.
I second this. Depending on how clean the input is, this would be more robust than a Regex solution.

Here is an image showing you the specific settings you would use when using Diap's Editing Toolbag to go from "<i>Example</i>" to "<span class="italic">Example</span>":

Click image for larger version

Name:	DiapItalics.png
Views:	199
Size:	5.5 KB
ID:	142464
Tex2002ans is offline   Reply With Quote