{"name":"gist: 966191","desc":"swap DOM nodes with HTML","actor":"jed","url":"https://gist.github.com/966191","actor_gravatar":"7b72d5a18ab92129692e97a76a153fe0","snippet":"function(p,n,t){p.parentNode.replaceChild(n.nodeType?n:(((t=document.createElement(\"p\")).innerHTML=n.replace(/^\\s+/,\"\")),t.firstChild),p)}","action":"update"}