I don't think you need a regex anywhere. Like I said, we shouldn't be changing anything that is already a string. This issue is also focused on the attributes, but this actually changes he content of the node, not the attributes.