Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在asp:TextBox使用wmd-input. 当用户单击提交按钮时,我不想在服务器端捕获降价作为Text我的asp:TextBox控件的属性。
asp:TextBox
wmd-input
Text
但是,我在服务器端的 TextBox 不是预期的降价,而是包含 HTML 格式的降价版本:
<h1>testing</h1>
我如何获得纯降价?
PS:在客户端,我在asp:TextBox. 我不清楚在回发之前何时将其转换为 HTML。
我自己想通了。
WMD-Editor 支持确定编辑器输出的配置。查看可下载版本附带的文件 optionsExample.html。
在我的情况下,我只需要在 showdown.js 参考之前添加它:
<script type="text/javascript"> window['wmd_options'] = { output: "Markdown", buttons: "bold italic | link blockquote image | ol ul heading hr" }; </script>