JSFiddle - React, Tailwind, and code Playground
by Mark Coleman
HTML
<h1 id='n-1.12.2.2.4'>test</h1>
JavaScript
function updateTrip(xml, success, jqXHR) {
var para = $(xml);
var id = para.attr('id').replace(/\./g, '\\.');
$('#' + id).replaceWith(para);
}
updateTrip("<h1 id='n-1.12.2.2.4'>test2</h1>", null, null)