In this thread: Uncomment html code using javascript
I found that all the solutions in the thread uses jQuery. I was just wondering how to do this in vanilla javascript without using third-party library?
This is not a duplicate question of How do I get an HTML comment with javascript, that thread discussed about how to find and delete the comment node but didn't say anything about how to "uncomment" it.
replaceWithmethod, which is a method of jQuery object..innerHTMLand a regular expression to parse it?