JSFiddle - React, Tailwind, and code Playground

by rwaldron

JavaScript

$("body").append("<span title='James&#39;s'>Here</span>"); 
$("body").append("<span title='St. James&#39;s Places'>There</span>");


console.log([
$("[title='James\\'s']").text(), 
$("[title='St. James\\'s Places']").text()    
])