thymeleaf如何展示后端传到前端的html代码,才能让代码执行,而不是以文本的方式显示在页面上

<span th:utext="${html}"></span>

其中“html”是我们model中存储html代码的名称

发布了177 篇原创文章 · 获赞 24 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_42449963/article/details/105175515