假设编辑器 ID 为 test-editormd
,以 PHP 为例:
<?php
header("Content-Type:text/html; charset=utf-8");
if (isset(_POST['submit'])) {
echo "<pre>";
echo htmlspecialchars(_POST["test-editormd-markdown-doc"]);
echo "<br/><br/>";
echo htmlspecialchars($_POST["test-editormd-html-code"]);
echo "</pre>";
}
?>
powered by kaifamiao