/** * @param {string} text * @return {string} */ function sanitizeHTML(text) { return $('<div>').text(text).html(); } COPY