/** * html字符编码 * * @param {string} str - 需要编码的字符串 * @returns {string} 编码后的字符串 * @example * * htmlEncode('