// Replace nsbp entites to char since it's easier to handle
[/ /gi,"\u00a0"]
]);
// Remove bad attributes, with or without quotes, ensuring that attribute text is really inside a tag.
// If JavaScript had a RegExp look-behind, we could have integrated this with the last process() array and got rid of the loop. But alas, it does not, so we cannot.
do{
len=h.length;
// Don't remove the type attribute for lists so that non-default list types display correctly.