get what you want from html strings reliably