下午好。我希望得到一个带有HTML标记的文本字符串,但是summernote解释它们并显示富文本,我想要的是显示带有标记的文本,但我没有成功:
var content = '<b>Content</b> and <b>tags</b> and <i>HTML</i>';
//I have tried this:
$('#summernote').summernote('code',content);
$('#summernote').val(content)
我想要获取html标签之间的文本,而不是标记值。例如:有一个标签 <input id="item" type="checkbox" name="vehicle" value="bike" >I have a bike <br> 我只需要文本I have a bike而不是value="Bike"。 这是我的Fiddle 选项标签文本也不在项目列表中 提前感谢您的帮助。小提琴的例子将不胜感激。
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;text-align:
justify;line-height:normal">
First Text
<span lang="EN-US" style="font-size:12.0pt;
font-family:"Times New Roman","serif"&