mvccore/ext-view-helper-writebyjs

MvcCore - Extension - View - Helper - WriteByJs - prevent sensitive content against spam bots and convert content into JS `<script>document.write(String.fromCharCode(...));`</script>.

v5.2.0 2024-05-23 07:27 UTC

This package is auto-updated.

Last update: 2024-10-23 08:31:29 UTC


README

Latest Stable Version License PHP Version

Prevent sensitive content against spam bots and convert content into JS.

Installation

composer require mvccore/ext-view-helper-writebyjs

Example

Sensitive content to prevent:

<a href="mailto:info@example.com">info@example.com</a>

Rendered output:

<script>
  document.write(String.fromCharCode(
    60,97,32,104,114,101,102,61,34,109,97,105,108,116,111,58,105,110,
    102,111,64,101,120,97,109,112,108,101,46,99,111,109,34,62,105,110,
    102,111,64,101,120,97,109,112,108,101,46,99,111,109,60,47,97,62
  ));
</script>