JSFiddle - React, Tailwind, and code Playground

by darcyclarke

HTML

<div

JavaScript

console.log(String(document.body.innerHTML).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;'));