templates Thymeleaf th:text Put a text without removing HTML structures

Regardless of the semantics of tags, the correct answer is this one:

<h1>
    <span th:text="${header.title}" th:remove="tag">title</span>
    <small th:text="${header.subtitle}" >Subtitle</small>
</h1>

In this way Thymeleaf removes de tag and the results is what you expect:

<h1> 
    TITLE 
    <small>SUBTITLE</small> 
</h1>

Source: templates – Thymeleaf th:text – Put a text without removing HTML structures – Stack Overflow