react-lib-escape-text-content-for-browser

Escapes text to prevent scripting attacks.

Usage no npm install needed!

<script type="module">
  import reactLibEscapeTextContentForBrowser from 'https://cdn.skypack.dev/react-lib-escape-text-content-for-browser';
</script>

README

escapeTextContentForBrowser

Escapes text to prevent scripting attacks.

@param {*} text Text value to escape. @return {string} An escaped string.