首页
Tutorials
API
DEMO
Google Group
Source Code
English API Docs
Navigation
index
modules
|
next
|
previous
|
KISSY v1.2 Documentation
»
API Documentation
»
Seed
»
lang
»
escapeHTML
¶
Module
¶
seed
Methods
¶
KISSY.
escapeHTML
(
)
¶
String
KISSY.escapeHTML
(str)
将字符串经过 html 转义得到适合在页面中显示的内容, 例如替换
<
为
<
Parameters:
str
(
string
) – 要显示在页面中的真实内容
Returns:
经过 html 转义后的字符串
Return type:
string
例如
KISSY
.
escapeHTML
(
"<a>x</a>"
);
// => "<a>x</a>"
Navigation
index
modules
|
next
|
previous
|
KISSY v1.2 Documentation
»
API Documentation
»
Seed
»
lang
»
Seed
loader
kissy
lang
web
Core
ua
dom
event
node
json
ajax
cookie
base
anim
Component
sizzle
mvc
template
datalazyload
flash
dd
resizable
switchable
suggest
calendar
imagezoom
overlay
uibase
component
button
menu
menubutton
tree
waterfall
validation
editor