Skip to content

Instantly share code, notes, and snippets.

@Ivannnnn
Created August 30, 2022 07:29
Show Gist options
  • Save Ivannnnn/924ec9e0c9e7d7fe66d5461eb7976181 to your computer and use it in GitHub Desktop.
Save Ivannnnn/924ec9e0c9e7d7fe66d5461eb7976181 to your computer and use it in GitHub Desktop.
const parseToDOM = Range.prototype.createContextualFragment.bind(
document.createRange()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment