ja to udelal takhle :

Kód:
$work&#91;$m&#93; = str_replace&#40;array&#40;"&gt;", "&lt;", "&quot;", "&amp;"&#41;, array&#40;">", "<", "\"", "&"&#41;, $work&#91;$m&#93;&#41;;