title: stripping the << tag for c++ in php
body: <p>I want to keep <code>&lt;&lt;</code> tag in string but because of strip_tags, it is also removed from string.</p>
  
  <pre><code>$str = "#include&lt;iostream&gt; using namespace std;int main () {  int a, b=3;  a = b;         a-=10;  cout&lt;&lt; a;  return 0;  }";
  
  $newtext = htmlspecialchars((strip_tags(($str),'&lt;iostream&gt;,&lt;')));
  
  echo "&lt;br&gt;" . $newtext;
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>-#include&lt;iostream&gt; using namespace std;int main () { int a, b=3; a = b; a-=10; cout 
  </code></pre>
  
  <p>Suggest me solution.</p>