In Scala you can use higher order funktions to handle Strings, a String is an array of Char's and thus you can use the filterNot funktion.
scala > val ns = <div>1 2\u00A0 3 </div> ns: scala.xml.Elem = <div>1 2? 3?</div> scala> ns.text.filterNot(_ == '\u00A0') res1: String = 1 2 3