Thymleaf-回显富文本(html标签、CKeditor等)

版权声明:如需转载,请备注链接: https://blog.csdn.net/W_Meng_H/article/details/81873959

输入方式:

回显方式:

代码:

 <div th:utext ="${thisMilestone.description}">description</div>

用th:text不会解析html,用th:utext会解析html,在页面中显示相应的样式。

两者区别:https://blog.csdn.net/rongxiang111/article/details/79678765

猜你喜欢

转载自blog.csdn.net/W_Meng_H/article/details/81873959