title: Edit php line Smarty template engine
body: <p>I want to edit my php template, but I can not get it right.
  I use the the Smarty template engine.</p>
  
  <p>My default php line looks like this:</p>
  
  <pre><code>{$childItem-&gt;getLabel()}
  </code></pre>
  
  <p>That does display HTML like this:</p>
  
  <pre><code>MY TEXT &lt;br&gt;&lt;span class="text-domain"&gt;TEXT&lt;/span&gt;
  </code></pre>
  
  <p>I want to remove all content after the <code>&lt;br&gt;</code>. So that it only displays the <code>MY TEXT</code> part.</p>
  
  <p>I tried this, but that does not work:</p>
  
  <pre><code>{$childItem-&gt;getLabel()|replace:'&lt;br&gt;' : ''}
  </code></pre>
  
  <p>How can I fix this?</p>