I have a string that looks kinda like:
Approximately <b>Silver I</b><br><br><span class=symbol--micro></span>MMR resembles the <b>top 49%</b> of summoners in Silver I
Problem is that I dont want anything within <
and >
. In an old code my solution was:
summary = MMR_info["ranked"]["summary"]
summary = summary.replace('<b>', '')
summary = summary.replace('<br>', '')
summary = summary.replace('<span class="symbol--micro"></span>', ' ')
summary = summary.replace('</b>', '')
but this wasn't very pretty. I would appreciate the how and why on doing this the most efficient way.