Twig highlight word (Timber plugin)
<p>I use Timber plugin for Wordpress.</p>

<p>And I create a results search page. I would like to highlight the word that the user searched.</p>

<p>In PHP I wrote that :</p>

<pre><code>$highlight = array();
if ($terms) {
    foreach($terms as $term) {
        array_push($highlight, '&lt;span class="blue bold"&gt;'.$term.'&lt;/span&gt;');
    }
}
</code></pre>

<p>And that, to replace the searched word in PHP :</p>

<pre><code>&lt;p class="date red"&gt;&lt;?php echo str_ireplace($terms, $highlight, get_field('subtitle_post')); ?&gt;&lt;/p
</code></pre>

<p>But I don't know how to transform that in Twig (Timber) ?</p>