View Single Post
Old 03-02-2020, 06:40 PM   #13
Brett Merkey
Not Quite Dead
Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.
 
Posts: 195
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
One thing to consider in similar situations such as presented by the OP is to use CSS contextual selectors rather than subject the text to regex.

As I understand, there was a problem with italicized text within forms. A style rule could deal with that instantly:

form em {font-style: normal}

This would un-italicize anything within em tags which are in a form—while ignoring all other em tag content.
Brett Merkey is offline   Reply With Quote