These two lines would be better refactored into a plain_text_from_html() function.