w2ui
Home
Get started
Demos
Docs
Blog
Support
Layout
Grid
Toolbar
Sidebar
Tabs
Form
Popup
Utilities
ver 1.3
ver 1.4
ver 1.5
ver 2.0
Utilities
Overview
Properties
Methods
Other
Events
Plugins
w2utils.encodeTags
Encodes HTML tags.
encodeTags(str)
str
string
, string to encode
The first
str
argument should be a string. The method will encode HTML tags (into > < & etc.) and return new string.
var a = w2utils.encodeTags('
some tags
'); console.log(a);
User Comments
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus