function htmlify(text) {
        if (!text) {
            return "";
        }

        return $('<span />').text(text).html();
    }
Change text into safe HTML

@param {String} text
@return {String} HTML version