Namespace Crayon.Tag
Holds functionality for escaping charactors.
Defined in: tag.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
Crayon.Tag.content_tag(name, content, Object, Boolean)
Retrurns a tag string.
|
<static> |
Crayon.Tag.tag(name, Object, Boolean, Boolean)
Retrurns a tag string.
|
Method Detail
<static>
Crayon.Tag.content_tag(name, content, Object, Boolean)
Retrurns a tag string.
- Parameters:
- {String} name
- a tag name such as "p".
- {String or Function} content
- The text inserted into the tag. If a function is passed, the returned value is inserted.
- Object Optional
- options kev-value pairs for the tag attributes. The default is {}.
- Boolean Optional
- escape if true, the special chars in tag attributes specified by options is escaped.
<static>
Crayon.Tag.tag(name, Object, Boolean, Boolean)
Retrurns a tag string.
- Parameters:
- {String} name
- a tag name such as "p".
- Object Optional
- options kev-value pairs for the tag attributes. The default is {}.
- Boolean Optional
- open if true, the closer is excluded. The default is fasle.
- Boolean Optional
- escape if true, the special chars in tag attributes specified by options is escaped.