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?