Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

& -> &

1 view
Skip to first unread message

Conor Williams

unread,
Oct 12, 2021, 9:22:50 PM10/12/21
to
HTML>Ü™
<form onSubmit="ifuncky(); return false;" name=f>
<textarea wrap=virtual name=i>Input: </textarea>
<textarea name=o><u>Output:</u> </textarea>
<button>In;</button></form>
<script>function ifuncky() {
const p = new DOMParser();
var pa=p.parseFromString(document.f.i.value,
"text/html");
document.f.o.value = pa.body.firstChild.textContent;
console.log(pa.body.firstChild.textContent);///c:caki
}
</script></HTML>
~
0 new messages