我将 html 放在 ckeditor 中作为
<li><a href="<%#ConfigurationManager.AppSettings["Path"].ToString()%>Default">Home</a></li>
但它将其转换为类似的东西,
<li><a a="" href="<%#ConfigurationManager.AppSettings["><i class="fa fa-angle-right"></i></a></li>
我做什么?
找到配置.js并在 ckEditor 配置部分中添加/替换以下内容:
//Whether to escape HTML when the editor updates the original input element.
config.htmlEncodeOutput = false;
//Whether to use HTML entities in the editor output.
config.entities = false;
//Whether to escape basic HTML entities in the document
config.basicEntities = false;
来源: 检查文档