Now it will only remove & lt; but & gt; will be converted to ">". If this behavior is intended it can be merged.
But if not, you can consider something like this:
```php
preg_replace('/&([^;]+);/','&amp;\\1;',$a);
```