How to extract the first letter from the string in Thymeleaf.
<div th:text="${#strings.substring(person.someProperty, 0, 1)}"></div>
Can someone please tell the difference between them mentioned below as I can use both insides of the div. Which one should I use. What is the role of square bracket
th:text="${ps.name}"
[[${ps.name}]]