appendText -


未知
未知

软件简介

Description

This (very) small plugins is the incestuous child of “append” and “text”: it
appends a new Text Node.

This is especially important when you want to append user-supplied input,
because a Text Node is never interpreted as HTML.

Example

var $myLabel = $("<label/>") .append("<input type='checkbox'/>") .appendText("use HTML <a href=''>");

Will add to the DOM the equivalent of the following HTML:

<label><input type='checkbox'/>use HTML &lt;a href=''&gt;</label>