Skip to content

unescape

反转义字符串中的 HTML 实体。

示例

ts
import { unescape } from '@base-web-kits/base-tools-ts';

unescape('fred, barney, & pebbles');
// 结果: 'fred, barney, & pebbles'

参数

  • string (string): 要反转义的字符串。

返回值

  • (string): 返回反转义后的字符串。

来源