removes !DOCTYPE and title elements from the html string.
khtml is picky about dom faults, you can't attach a style or <title> node as child of body
must go into head, so we need to cut out those tags
inserts (replaces) the given content into the given node. dojo.place(cont, node, "only")
may be a better choice for simple HTML insertion.
Unless you need to use the params capabilities of this method, you should use
dojo.place(cont, node, "only"). dojo.place() has more robust support for injecting
an HTML string into the DOM, but it only handles inserting an HTML string as DOM
elements, or inserting a DOM node. dojo.place does not handle NodeList insertions
or the other capabilities as defined by the params object for this method.
Parameter
Type
Usage
Description
node
DomNode
required
the parent element that will receive the content
cont
String|DomNode|NodeList
required
the content to be set on the parent element.
This can be an html string, a node reference or a NodeList, dojo.NodeList, Array or other enumerable list of nodes
params
Object
optional
Optional flags/properties to configure the content-setting. See dojo.html._ContentSetter