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.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
elemente | elemente | The element wrapper receiver. |
HTML (optional) | mokwalo | HTML string; omit to read. |
oketsa (optional) | boammaaruri | Append rather than replace. |
Examples
Section titled “Examples”tiro setaLoeto() {
tlosaKanefase();
diri e = bopaTemana("Dumela");
dirisaHTML(e, " <strong>lefatshe</strong>", nnete);
}