-
Couldn't load subscription status.
- Fork 0
ProtoString DOM Node Methods
Seth Clydesdale edited this page Jun 9, 2015
·
13 revisions
<< Back to ProtoString Method Reference
The DOM Node methods are used to convert a String into a Node object, with the String being the Node's textual content. There are also methods which can be used to clean a string for use as the attribute of a DOM Node, and more. Consult the table below for more information on these methods.
| Method | Description |
|---|---|
| cleanHTML() | Cleans HTML tags and entities from a string. |
| cleanId() | Cleans a text string so that it can be used in the id or href attribute of an element. |
| newlineToBreak() | Converts newline characters into break tags. |
| toAnchor() | Converts a text string into an anchor point. |
| toNode() | Converts a text string into an HTML element, with the string being the innerHTML content. |
| toTextNode() | Converts a text string into a text node. |
Home • History • ProtoString • Created by Seth Clydesdale