flat function: strip html tags, remove newlines, trim.