View Single Post
Old 07-17-2014, 09:33 AM   #1
Steven630
Groupie
Steven630 began at the beginning.
 
Posts: 180
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
How do I override colour when writing a recipe?

Quote:
<p><span style="color: #ff0000"><strong>text 1</strong></span><span style="color: #008000"><strong>text 2</strong></span></p>
I want text1 and text2 to be in default colour (black). How should I write the recipe? Thank you.

I've tried something like

Quote:
span['style'] = span['style'].replace('color', 'ignore-me')
But it says
Quote:
NameError: global name 'span' is not defined
To which part should I add the code?

Last edited by Steven630; 07-17-2014 at 09:53 AM.
Steven630 is offline   Reply With Quote