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.0.0 2021-01-18 13:42 UTC

This package is auto-updated.

Last update: 2024-04-17 17:51:13 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>