How do you replicate an array whilst keeping the same keys?
Ok. I've written a simple(ish) function to take an argument and return the same argument with the danger html characters replaced with their character entities. The function can take as an argument either a string, an array or a 2D array - 3d arrays or more are not supported. The function is as follows: public function html_safe($inp...