JSFiddle - React, Tailwind, and code Playground

by JeffC

HTML

<div id="test"> ABC 123 &nbsp;</div>

JavaScript

console.clear();
var s = document.getElementById("test").innerText;
console.log("#" + s.trim() + "#");