appendText
June 25, 2007 - 5:22am — JulienW
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 <a href=''></label>Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 1.0.0 | 2007-Jun-25 | 482 bytes | Recommended for 1.1.x | ||
