JSFiddle - React, Tailwind, and code Playground
by markm
HTML
<custom>
<p>This is a text</p>
</custom>
JavaScript
nodes = document.getElementsByTagName('custom');
for (var i = 0; i< nodes.length; ++i) {
paragraphs = nodes[i].getElementsByTagName('p');
alert(paragraphs[0].innerHTML);
}