how to use thymeleaf replace text in html
i have tried
<a><i class="fa fa-home" th:text="${menuItem.name}" ></i> <span class="fa fa-chevron-down"></span>
then get result
<a><i class="fa fa-home">Menu</i> <span class="fa fa-chevron-down"></span></a>
i want get result like:
<a><i class="fa fa-home"></i> Home <span class="fa fa-chevron-down"></span>
<a><i class="fa fa-home"></i> [[${menuItem.name}]] <span class="fa fa-chevron-down"></span>
要么
<a><i class="fa fa-home"></i> <span th:text="${menuItem.name}" th:remove="tag"> Menu Item</span> <span class="fa fa-chevron-down"></span>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.