added clean html function