JSFiddle - React, Tailwind, and code Playground
by Darby Rathbone
HTML
<input type="text" value="{{a}}"></input>{{mouse}}
JavaScript
var all = [].slice.call(document.querySelectorAll("*"));
all = all.filter(function (e) {
return [].slice.call(Object.getOwnPropertyNames(e)).some(function (f) {
console.log(e[f]);
if(/^(?:\{\{)(.+)(?:\}\})$/.test(e[f]))
e[f].replace(/^(?:\{\{)(.+)(?:\}\})$/,"$1");
return /^(?:\{\{)(.+)(?:\}\})$/.test(e[f]) && !/(text)/i.test(f);
});
// return [].slice.call(e.attributes).some(function (f) {
// return /^(?:\{\{)(.+)(?:\}\})$/.test(f.nodeValue);
// })
});
all.forEach(function(e){e.replace(/^(?:\{\{)(.+)(?:\}\})$/,function(a,b,c,d){return "{"+c+"}";})});
console.log(all);