Thymeleaf怎么原样输出html内容

    技术2025-09-23  62

    问:调用接口传递参数以后生成一段html文本,前端用了Thymeleaf框架,Thymeleaf怎么原样输出html内容?

    答:使用 th:utext 就可以了。

    Processed: 0.009, SQL: 9