JSFiddle - React, Tailwind, and code Playground

by rity

HTML

<p id="data">data here</p>
<p id="wtf">hi</p>

CSS

p {
    border: 1px solid red;
    
}

JavaScript

$(function () {  

    $.get('https://www.fratello-trade.com', function(html) {
      alert(html);
    });

    $.get('https://draft.dev/learn/how-to-use-markdown', function(html) {

      alert($(html).find("#why-use-markdown").text());

    });

    $.get('https://www.fratello-trade.com', function(html) {
    // Loop through elements you want to scrape content from
    alert(html);
    $(html).find(".tgme_widget_message_author").each(function() {
        alert($(this).html());
      });
    });
    
    $.ajax({
      url: 'http://google.com', // Or your web page link
      type: 'GET',
      success: function(res) {
        alert(res);
        var headline = res.responseText;
        htmlCodeTextArea.value = headline;
      },
    error: function(data) {
        var html = $(data.responseText)
        console.log(html.find('.not-found').text());
    }
		});

});