Well, I got WMD, but I canβt find out how to get the generated HTML \ Markdown code .... I want to send it to the DB ... that's why I use PHP ....
<script src='wmd.js'></script> <form name="formname" method='POST'> <textarea id="myTextarea" style="width: 500px; height: 200px;"> *This* example sets WMD options programmatically. </textarea> <input type="submit" name="sub" value="submit"> </form> <div class="wmd-preview" id="wmd"></div> <?php if( isset( $_POST['sub'] ) ) { $generated_HTML = "How to get it here"; } ?>
Now can someone tell me how to get the generated HTML ...
html php wmd-editor
Moon
source share