Document.createEntityReference

Creates an EntityReference object. In addition, if the referenced entity is known, the child list of the EntityReference node is made the same as that of the corresponding Entity node.

interface Document
createEntityReference
(
DOMString name
)

Meta