- From: Domenic Denicola <notifications@github.com>
- Date: Wed, 10 Feb 2016 10:05:00 -0800
- To: whatwg/dom <dom@noreply.github.com>
Received on Wednesday, 10 February 2016 18:05:27 UTC
I'm not sure why you need a parsing library exactly? Can't you just use ```js document.createElement("template"); template.innerHTML = passedInStringAfterSubstitutions; return template.contents; ``` Maybe the problem is safely generated `passedInStringAfterSubstitutions`. but maybe it's not; just do HTML escaping and then concatenation. See e.g. https://github.com/domenic/count-to-6/blob/master/lib/exercises/tagged_template_strings/solution/solution.js --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/150#issuecomment-182506279
Received on Wednesday, 10 February 2016 18:05:27 UTC