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.3.0
2024-11-21 15:01 UTC
Requires
- php: >=5.4.0
- mvccore/ext-view-helper: ^5.3
This package is auto-updated.
Last update: 2024-11-21 16:01:09 UTC
README
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>