I have an object with two attributes, one is the id and the other is an attribute of the strring type called text of the type "TEXT" (postgres bank) that is used to store the text of a client post.
When the application loads these I would like to make a summary of this text.
I was able to do this using JSP, easily using forTokens
.
How to do the same as the code below using the thymeleaf?
<p class="post-texto">
<c:forTokens var="resumo" items="${p.texto}" delims=" " begin="0" end="60">
${resumo}
</c:forTokens><a href="<c:url value="/${p.link}" />">[Continue lendo]</a>
</p>
I researched but found nothing similar to forTokens in thymeleaf.