Convert html parsing into Scala.