It would be clearer (but less efficient) to use `.replace(rDataAttr, '')` here.