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?
You can use htmlentities() if it solve your problems, else store the string in one variable which returns from the functions and then while printing that string