Using regex javascript or Jquery, how do i select a lone character or in the body element? We have noticed that there's a random "s" at the bottom of our site, after the footer. We have no idea where it came from -it's really bizarre because it's in the body
element, but it's not tied to any child element. it's just floating there in between some script tags.
screenshot of the 's' after the footer
here is the 's' in the DOM in between scripts
It might be from a plugin - but in the meantime, we were hoping we could hide this until we find the culprit.
I'm trying to select the element first with this in the console, but I've had no success.
jQuery('body').filter( function(){ return /([s]$)/g.test( jQuery(this).text() ) } )
However, I can't select this element.. does anyone know how I can do this? Thanks so much