I need to remove all whitespaces after <br />
in a String. I'm getting some html text from a xml document that i am wiriting out in a android app with this code:
information_view.setText(Html.fromHtml(information));
.
The problem is that this html code:
Betsson vill att du ska vinna jackpotten på över 90 miljoner !<br />
Därför får du 5 free spins på Mega fortune varje dag fram tills jackpotten har gått till en lycklig vinnare. <br />
<br />
Regler och Villkor:<br />
Bonuspengar måste omsättas 35 gånger innan uttag.<br />
Looks like this when printed out in the app:
Betsson vill att du ska vinna
jackpotten på över 90 miljoner !
Därför får du 5 free spins på Mega
Fortune varje dag fram tills jackpotten
har gått ut till en lycklig vinnare.
Regler och villkor:
Bonuspengarna måste omsättas 35
gånger innan uttag.
As you can see both
and " "
whitespaces occur in the html code. But replacing one of them will suffice, as i can replace
with " "
or the other way around.
I've tried to search for a few days now, all help is very appreciated.