title: How to ignore HTML tags using Thymeleaf when printing text string?
body: <p>I'm using Thymeleaf in my Spring Boot project. </p>
  
  <p>I've got a text string which contains some HTML tags and my goal is to print it without styling as well as without any HTML tags. </p>
  
  <p>Using:</p>
  
  <pre><code>&lt;p th:text="${myString}"&gt; &lt;/p&gt;
  </code></pre>
  
  <p>I've got something like this: </p>
  
  <pre><code>&lt;b&gt; text &lt;/b&gt;
  </code></pre>
  
  <p>And that's ok because the value of <em>myString</em> text string is</p>
  
  <pre><code>String myString = "&lt;b&gt; text &lt;/b&gt;"; 
  </code></pre>
  
  <p>So trying to do it in other way, using:</p>
  
  <pre><code>&lt;p th:utext="${myString}"&gt; &lt;/p&gt;
  </code></pre>
  
  <p>I've got something like this: </p>
  
  <p><strong>text</strong></p>
  
  <p>But my goal ist to get non-formatted plain text like this: </p>
  
  <pre><code>text 
  </code></pre>
  
  <p>Simply text without any HTML tags and without rendering the HTML code. </p>
  
  <p>How can I acheive this with using Thymeleaf only? </p>
  
  <p>I've tried some <em>th:remove="tags"</em> along with <em>th:inline="text"</em> but It doesn't work so far. </p>
  
  <p>Thanks in advance</p>