UNPKG

@wordpress/escape-html

Version:
22 lines (21 loc) 577 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = __unstableEscapeGreaterThan; /** * Returns a string with greater-than sign replaced. * * Note that if a resolution for Trac#45387 comes to fruition, it is no longer * necessary for `__unstableEscapeGreaterThan` to exist. * * See: https://core.trac.wordpress.org/ticket/45387 * * @param value Original string. * * @return Escaped string. */ function __unstableEscapeGreaterThan(value) { return value.replace(/>/g, '>'); } //# sourceMappingURL=escape-greater.js.map