Moved sanitizeHTMLEntities around

Should hopefully fix the exception caused when retrieving tweets and sanitizing them using my method