From 976825d4430b65068f23183ab78de6ec51ebcc2d Mon Sep 17 00:00:00 2001 From: Toby Parent Date: Fri, 15 Dec 2023 18:29:03 -0500 Subject: [PATCH] Update toHtml.js Added attribution to `toHtml` method --- src/util/toHtml.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/toHtml.js b/src/util/toHtml.js index 6b2a3e5..3a715ac 100644 --- a/src/util/toHtml.js +++ b/src/util/toHtml.js @@ -1,6 +1,7 @@ +// adapted from https://davidwalsh.name/convert-html-stings-dom-nodes const toHtml = (str)=>document.createRange() .createContextualFragment( str.trim() ).firstChild; -export default toHtml; \ No newline at end of file +export default toHtml;