added a function for html conversion to text, that handles new lines better than jQuery's .text().