well i got WMD but i am unable to learn how to get the generated HTML\Markdown Code.... i want to send it to the DB... thats why i am using PHP....
<script src='wmd.js'></script>
<form name="formname" method='POST'>
<textarea id="myTextarea" style="width: 500px; height: 200px;">
*This* example sets WMD's options programmatically.
</textarea>
<input type="submit" name="sub" value="submit">
</form>
<!--Preview Can Be Seen Here-->
<div class="wmd-preview" id="wmd"></div>
<?php
if( isset( $_POST['sub'] ) )
{
$generated_HTML = "How to get it here";
}
?>
now can anyone please tell me how to get the generated HTML...