Snippets tagged “xss”
4 snippets use this tag.
- Convert plain text URLs into HTML hyperlinks in PHPPHP
You can use the preg_replace() function in PHP to convert plain text URLs into HTML hyperlinks.
- How can I replace the deprecated set_magic_quotes_runtime in php?PHP
The set_magic_quotes_runtime function has been deprecated since PHP 5.3 and removed in PHP 7.0.
- How to HTML-encode a StringJavaScript
Read this JavaScript tutorial and learn about some useful and fast methods that help you to HTML-encode the string without causing the XSS vulnerability.
- XSS filtering function in PHPPHP
Here is an example of a basic XSS filtering function in PHP: