We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
js_sanitize - sanitizes JavaScript attributes
$string js_sanitize(string $string)
replaces special characters with special meaning to JavaScript with escape character equivalents.
string
string you want to sanitize
Returns sanitized string.
Getting Started
Testing
Compatibility
Licensing
Function Reference and PHP API
How it Works
Sanitizers Included
The HTML Parser
Source File Overview
Adding Sanitizers
Needs for Improvement
3rd Party Libraries Used in PHP-CSAS