Sanitize HTML Input: Preventing XSS While Allowing Safe Markup