Home » Java » How to check the value of th:utext in thymeleaf page

How to check the value of th:utext in thymeleaf page

Posted by: admin October 21, 2018 Leave a comment

Questions:

I send the HTML tags from controller to Thymeleaf page, and then I show the HTML tags in the Thymeleaf pages as shown below

<div tags="remove">
    <div id="accordian" th:utext="${strMenu}"></div>
</div>

But I want to check the value of strMenu is null or not in the Thymeleaf page.

Answers: