javascsript get text area contents as html code example
Example: how to get the content of a text area in js
document.getElementById("myTextarea").value = "Fifth Avenue, New York City";
document.getElementById("myTextarea").value = "Fifth Avenue, New York City";