const require_escape = require("../../string/escape.js"); const require_toString = require("../util/toString.js"); //#region src/compat/string/escape.ts /** * Converts the characters "&", "<", ">", '"', and "'" in `str` to their corresponding HTML entities. * For example, "<" becomes "<". * * @param {string} str The string to escape. * @returns {string} Returns the escaped string. * * @example * escape('This is a