example/js/svg.js
function(text) {
      // remove contents
      while (this.node.hasChildNodes())
        this.node.removeChild(this.node.lastChild)

      // create text node
      this.node.appendChild(document.createTextNode(text))

      return this
    }
function(text) {
      // remove contents
      while (this.node.hasChildNodes())
        this.node.removeChild(this.node.lastChild)

      // create text node
      this.node.appendChild(document.createTextNode(text))

      return this
    }
function ( text ) { // remove contents while ( this . node . hasChildNodes ( ) ) this . node . removeChild ( this . node . lastChild ) // create text node this . node . appendChild ( document . createTextNode ( text ) ) return this }
Insert some plain text
Insert some plain text