JSFiddle - React, Tailwind, and code Playground

HTML

<div id="lul" test="pute">
test a la com
</div>

JavaScript

//Parse function string and convert it to real javascript function...
if (typeof String.prototype.parseFunction != 'function') {
    String.prototype.parseFunction = function () {
		var funcReg = /function *\(([^()]*)\)[ \n\t]*{(.*)}/gmi;
		var match = funcReg.exec(this.replace(/\n/g, ' '));
		if(match) {
            return new Function(match[1].split(','), match[2]);
		}

    	return null;
    };
}

$(document).ready(function() {

		document.getElementById(lul).innerHTML = "Fait." + "("+lul+")";
  	alert(document.getElementById(name).test)

});