Jul-19-2023, 04:10 PM
(This post was last modified: Jul-19-2023, 05:13 PM by deanhystad.)
I think this would work.
Output:<tr><td style="text-align: right "> 1234</td><td style="text-align: center"> ABCDEF</td><td style="text-align: center; background-color: #FF0000">TEXT A</td></tr>
This means your find/replace strings need to change.html = html.replace("\">TEXT A", "; background-color: #00FF00\">TEXT A")There has got to be a better way to do this, like using beautiful soup.