我理解如何:如果适用于html模板,但我没有找到任何关于如何做到这一点的线索当你期望纯文本(用例:纯文本电子邮件模板).
到目前为止我试过:
<html xmlns:th="http://www.thymeleaf.org" th:inline="text" th:remove="tag">
Dear [[${contact.firstname}]] [[${contact.lastname}]],
An alert was triggered at location: [[${account.address}]]
<span th:if=\"${videoLink}\">To view your security camera recordings, please click on [[${videoLink]]</span>
</html>
Run Code Online (Sandbox Code Playgroud)
它有效...但结果包含标签.我知道我做错了什么?
谢谢,西里尔