TWIG Get first letter of HTML after Raw filter
<p>I know how to get the first letter of a string in TWIG</p>

<pre><code>&lt;p&gt;The first letter is {{someString | first}}&lt;/p&gt;
</code></pre>

<p>With an HTML string like </p>

<pre><code>&lt;p&gt;This is a sting&lt;/p&gt;
</code></pre>

<p>The above would return '&lt;'</p>

<p>Adding 'Raw'/'escape' ends up to the same result.</p>

<p>I need to display that string as HTML ( like with Raw ) but get the first letter ( in the case above case 'T').</p>

<p>Am I using the filter in the incorrect order ?</p>

<p>Anyone knows ?</p>

<p>Many thanks ahead</p>

<p>@Matteo's answer is already close but not quite exactly what I wanted . I may have formulated my question wrongly. Sorry.</p>

<p>So If I had a string like this</p>

<pre><code>&lt;p&gt;This is a &lt;strong&gt;string&lt;/strong&gt;&lt;/p&gt;
</code></pre>

<p>Using raw would give </p>

<p>This is a <strong>string</strong></p>

<p>Now what I really need is to get the first letter (T) to do something with it  like adding tags around it </p>

<pre><code>&lt;span&gt;T&lt;/span&gt;his is a &lt;strong&gt;string&lt;/string&gt;
</code></pre>

<p>while still keeping the rest of the HTML inside . Striptags remove all the tags in the string and return a plain string without the HTML part.
I hope I formulated it right. </p>