Format text with sanitized html tags.