Note that there are some explanatory texts on larger screens.

plurals
  1. POstr_replace of html content with php
    text
    copied!<p>I have this code:</p> <pre><code>$str = 'di &amp;lt;a href="http://www.cadoinpiedi.it/author/redazione-la/#C" style="color:#006699; text-decoration:none;"&amp;gt;VARIABLE NAME&amp;lt;/a&amp;gt;'. '&amp;lt;br&amp;gt;'. '&amp;lt;strong&amp;gt;POST TITLE&amp;lt;/strong&amp;gt;'. '&amp;lt;br&amp;gt;'. '&amp;lt;br&amp;gt;'; $content=str_replace($str, "", $content); </code></pre> <p>With it I would remove this content from RSS description like this:</p> <p><em><strong>NOTE: $STR IS COMPOSED BY A VARIABLE NAME and A POST TITLE that change for each item!</em></strong></p> <pre><code>&amp;lt;img src="http://www.cadoinpiedi.it/img/fico-balo.JPG" width="280" height="94" align="left" style="margin-right:10px;" hspace="10" &amp;gt; &amp;lt;div style="margin-right:10px;" &amp;gt; di &amp;lt;a href="http://www.cadoinpiedi.it/author/redazione-la/#C" style="color:#006699; text-decoration:none;"&amp;gt;Redazione Cadoinpiedi.it&amp;lt;/a&amp;gt; &amp;lt;br&amp;gt; &amp;lt;strong&amp;gt;La showgirl ha denunciato la coppia per diffamazione&amp;lt;/strong&amp;gt; &amp;lt;br&amp;gt; &amp;lt;br&amp;gt; Raffaella Fico ha querelato i coniugi Balotelli, che rischiano un processo per il reato di diffamazione aggravata, perché commessa a mezzo stampa. Sulla Gazzetta dello Sport del 27 dicembre scorso i Balotelli avevano scritto una lettera aperta alla modella. &amp;quot;Nostro figlio non è quell&amp;apos;essere irresponsabile e senza dignità che tu... &amp;lt;a href="http://www.cadoinpiedi.it/2013/07/11/raffaella_fico_porta_in_tribunale_i_genitori_di_balotelli.html" style="color:#006699; text-decoration:none;"&amp;gt; Leggi &amp;lt;/a&amp;gt; &amp;lt;/div&amp;gt; </code></pre> <p>It don't work...what I am doing wrong? Thanks a lot.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload