@topher1kenobe I don't believe that the content being supplied here will be slashed, so you can remove the `stripslashes`, and will the contents of the attribute have quotes? Does it need the `str_replace`?

Also, before doing anything in the loop here, you should check to see `if ( $data_mentionable->hasAttribute( 'data-mentionable' ) )` and `continue` if it does not.