Download the PHP package initphp/escaper without Composer
On this page you can find all versions of the php package initphp/escaper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package escaper
InitPHP Escaper
Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs.
Requirements
- PHP 7.4 or higher
- PHP CType Extension
- PHP _MBString or Iconv Extension
Installation
Usage
\InitPHP\Escaper\Esc::esc()
:
$data
: The content to be cleared.$context
: The method to be used for cleaning. If the value is not one of the following; ThrowsException
.html
js
css
url
attr
$encoding
: If the character set to be used is not specified orNULL
;UTF-8
is used by default.
html
Escaper Example :
attr
Escaper Example :
Js
Escaper Example :
css
Escaper Example :
url
Escaper Example :
Credits
License
Copyright © 2022 MIT License
All versions of escaper with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-ctype Version *
ext-ctype Version *
The package initphp/escaper contains the following files
Loading the files please wait ....