JSFiddle - React, Tailwind, and code Playground

by Ronny

HTML

String.prototype.shouldEscape <br>
open your console

JavaScript

String.prototype.shouldEscape = function () {
    return ''+this !== escape(this);
}

console.log("+".shouldEscape(), '&'.shouldEscape());