Document.createTextNode

Element createTextNode(string content)

.