dojox/atom/io/model.util (version 1.10)

Method Summary

  • createDate(node) Utility function to create a date from a DOM node's text content.
  • escapeHtml(str) Utility function to escape XML special characters in an HTML string.
  • getNodename(node) Utility function to get a node name and deal with IE's bad handling of namespaces on tag names.
  • unEscapeHtml(str) Utility function to un-escape XML special characters in an HTML string.

Methods

createDate(node)
Defined by dojox/atom/io/model

Utility function to create a date from a DOM node's text content.

Parameter Type Description
node DOMNode

The DOM node to inspect.

Returns:any | undefined | null

Date object from a DOM Node containing a ISO-8610 string.

escapeHtml(str)
Defined by dojox/atom/io/model

Utility function to escape XML special characters in an HTML string.

Parameter Type Description
str String

The string to escape

Returns:any | undefined

HTML String with special characters (<,>,&, ", etc,) escaped.

getNodename(node)
Defined by dojox/atom/io/model

Utility function to get a node name and deal with IE's bad handling of namespaces on tag names.

Parameter Type Description
node DOMNode

The DOM node whose name to retrieve.

Returns:String | undefined

The name without namespace prefixes.

unEscapeHtml(str)
Defined by dojox/atom/io/model

Utility function to un-escape XML special characters in an HTML string.

Parameter Type Description
str String

The string to un-escape.

Returns:any | undefined

HTML String converted back to the normal text (unescaped) characters (<,>,&, ", etc,).

Error in the documentation? Can’t find what you are looking for? Let us know!