mvccore / ext-view-helper-writebyjs
MvcCore - 扩展 - 视图 - 辅助工具 - WriteByJs - 防止敏感内容被垃圾邮件机器人捕获并将内容转换为 JS ``.
v5.2.0
2024-05-23 07:27 UTC
Requires
- php: >=5.4.0
- mvccore/ext-view-helper: ^5.2
This package is auto-updated.
Last update: 2024-09-23 08:16:01 UTC
README
防止敏感内容被垃圾邮件机器人捕获并将内容转换为 JS。
安装
composer require mvccore/ext-view-helper-writebyjs
示例
要防止的敏感内容
<a href="mailto:info@example.com">info@example.com</a>
渲染输出
<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>