Use SafeHTMLUtils.htmlEscape for title to prevent XSS issue