关于thymeleaf 把 富文本内容或者textarea进行带格式展示 :utext
- 工作小总结
- 时间:2021-09-27 09:57
- 4019人已阅读
简介
比如原格式为:<p><span th:text='${case.introduce}'></span></p>这样输出会有一定问题;展示成:这个时候的格式直接输出了需要改为:<p><span th:utext='${case.introduce}'></span>
🔔🔔好消息!好消息!🔔🔔
有需要的朋友👉:微信号
<p><span th:text='${case.introduce}'></span></p>
<p><span th:utext='${case.introduce}'></span></p>