Skip to content
ExamplesOpen editor ↗

dirisaHTML

Reads, replaces or appends HTML.

dirisaHTML(elemente, [HTML], [oketsa])

With no HTML argument returns innerHTML. Passing HTML replaces content; true as the next argument appends. Setters return the receiver. HTML is parsed by the browser, so use trusted markup or native textContent for untrusted text.

NameTypeDescription
elementeelementeThe element wrapper receiver.
HTML (optional)mokwaloHTML string; omit to read.
oketsa (optional)boammaaruriAppend rather than replace.
Reads, replaces or appends HTML.
tiro setaLoeto() {
  tlosaKanefase();
  diri e = bopaTemana("Dumela");
  dirisaHTML(e, " <strong>lefatshe</strong>", nnete);
}

bopaTemana, dirisaMoGo