I have a text with html tags:
<p><b>Name and LastName</b><br />
Work Title<br /><span class="text-spacer"></span>
</p>
I want to have text in this format:
Name and LastName - Work Title
This is my code in Python but doesn't works:
text = '<p><b>Name and LastName</b><br />
Work Title<br /><span class="text-spacer"></span>
</p>'
my_text = re.sub(r'</b><br />', ' - ', text)