Get text from HTML before sending to listeners