# UNESCAPE
对指定类型的内容进行解码。编码使用ESCAPE函数。
# 语法
UNESCAPE(content, contentType)
- content:要解码的内容
- contentType:指定内容的类型,支持四种内容类型html 、js 、html-attr
示例地址: UNESCAPE (opens new window)
# 示例
UNESCAPE('用户输入:<strong>Hello&World</strong>', 'html')
URL参数解码,返回字符串用户输入:<strong>Hello&World</strong>
UNESCAPE('Hello\\x20\\x22World\\x22\\x0A', 'js');
js内容解码,返回字符串Hello "World"\n
是否有帮助?
0条评论
评论