js/pjax.js
// Converts HTML string to element object
Converts HTML string to element object
Converts HTML string to element object
function htmlToObject(html) {
    if(typeof html !== 'string') return html;
    let wrapper = document.createElement('div');
    wrapper.innerHTML = html.trim();
    return wrapper.firstChild;
}
function htmlToObject ( html ) { if ( typeof html !== 'string' ) return html ; let wrapper = document . createElement ( 'div' ) ; wrapper . innerHTML = html . trim ( ) ; return wrapper . firstChild ; }
Converts HTML string to element object
Converts HTML string to element object