I've been working on a small side project which formats Skype logs to make them look nice. This is going great, but I have hit a somewhat annoying bump in the road.
Here is a great (and somewhat obscene) example of what is going on. As you can see, htmlspecialchars() also converts HTML character codes into a string (because &
becomes &
). I was wondering if there was a way to allow HTML entities to still remain through htmlspecialchars?
Use this function:
You can use
str_replace('&',' ',$string);
instead of&
use what character you want remove...