I followed this and want to filter everything after br.
Here is an example:
<td class="flightAirport first">Palma de Mallorca<br><span class="second_row">nach Berlin Tegel</span></td>
What I get is: >Palma de Mallorcanach Berlin Tegel<
What I tried:
Stripping 'nach Berlin Tegel' from the string, gives a string with missing characters like >Palma de Mallor<.
My Question is, how can I get rid of any second line to not deal with strip()?
Thx.
Edit: replace() gives the right result. But if it's possible to filter it in the first place, it would be great to know how.