There is a function I can't seem to find in the standard library. One that will turn XML/HTML offending characters to corresponding entity- or character references. Is it indeed in the lib ? Where ? If not, could a kind soul hand me one ? Writing it really feels like reinventing the wheel for the 10^nth time. TIA