I'm trying to remove HTML tags (Python 3) but also trying to remove the text in between them. My below code snippet doesn't seem to give me the result I'm looking for and all the other questions I've found on SO seem to only look at removing the HTML tags but preserving the text inside the HTML tag which is not what I'm trying to do.
Current Code
import re
...
price="12.00 <b>17.50</b>"
price=re.sub('<[^>]*>', '', price)
String
12.00 <b>17.50</b>
Expected Outcome
12.00
Current Outcome
12.00 17.50