5 ms·Stripping Illegal Characters from XML in Python14 points by twampss 18y agowehriam 18y agoI've been on the lookout for something like this for ages.newt0311 18y agosmall (anal) correction: use enumerate for the line numbers.