Added html parsing function