Fixed bug in sanitizeHtml