下午好。我希望得到一个带有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)
在搜索文本时,它会找到并突出显示正确的文本,但是其他元素会被清除,如<p>、<ul>、<b>、<strong>。所有的元素都会被移除/清理!
<div class="ray-search">
<div class="field" id="ray-search-form">
<input type="text" id="searchfor" placeholder="what are you searching for
我有一个文本可以说脚本,它是由Javascript在HTML上这样调用;
<head>
<script src="speakClient.js"></script>
</head>
<body>
<button onclick="speak('type text to speak here')">Talk</button>
<div class="article">
<p>Sample text is here!!</