do it like that
viola, take the plain_text part you want.
UPDATE / EXAMPLE
add this javascript
<script type="text/javascript"> function createTextSnippet() {
in your HTML, add createTextSnippet as an onsubmit handler in the form, e.g.
<form action="xxx" method="xxx" onsubmit="createTextSnippet();" />
inside the form, between <form> and </form> insert
<input type="hidden" name="hidden_snippet" id="hidden_snippet" value="" />
When the form is submitted, you can connect to the server using hidden_snippet along with the rest of the fields in the form.
davidkonrad
source share