当我显示文本时,标签末尾总会有一些br标签,而br标签的数量可能会改变时间。我检查了资源,但无法解决这个问题。以下是我页面中的示例范围标记。
如何在结尾处清除这些无限数量的br标签?我正在使用Jquery。并且,我不想删除文本中的br标签,而是在文本的末尾。
<span class="small comment-display-label"> You are correct in the idea that cilia and flagella serve similar general function (motility) but differ in length and rate of movement. <br> evolutionary advantage of flagella for prokaryotes stem from the type of movement that is necessary, the specialized rotating function would be useful to prokaryotes for more advanced movement and selection of foward or backward movement. <br>See: <a target="_blank" href="http://micro.magnet.fsu.edu/cells/ciliaandflagella/ciliaandflagella.html">http://micro.magnet.fsu.edu/cells/ciliaandflagella/ciliaandflagella.html<br></a><br><br><br><br></span>