我有一个简单的代码:
//preview copy as it's being typed
$('#copyText').keyup(function(e){
$('#copyPreview').html($('#copyText').val());
});
当用户输入html时 - 他们可以看到保存时的预览。
However certain tags such as <ul> and <li> are not appearing. Other HTML works such as line breaks, bold, tables, even styles... just not lists (so far, from what I see)
你可以认为它不是css,因为我检查了它。
示例文本:
<b>All models are UL recognized <br><b>Important:</b> <br>
<ul><li>Adjustable range from -73 to 316°C (-100 to 600°F)</li>
<li>Resolution sensitivity of -17.7°C</li>
</ul>
答案 0 :(得分:0)