JSFiddle - React, Tailwind, and code Playground

by jquerybyexample

HTML

<script src="https://getfirebug.com/firebug-lite-debug.js"></script>
<span></span>

CSS

body {
    font-family: Arial;
    font-size: 12pt;
    padding : 10px;
}

JavaScript

$(document).ready(function () {
    var str = "Hello, <b>my blog name is</b> jQueryByExample."
    var sName = '';
    var sHTML = $.parseHTML(str);
    $.each(sHTML, function (i, el) {
        sName += el.nodeName + "<br/>";
        //el.nodeName = #text otherwise HTML tag name.
        //el.nodeValue = actual value of the node.
    });
    $('span').html(sName);
});