PHP Classes

File: tests/JsXssTest.php

Recommend this page to a friend!
  Classes of Lars Moelleken   PHP Anti XSS Filter   tests/JsXssTest.php  
File: tests/JsXssTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Anti XSS Filter
Remove tags from HTML that may cause XSS attacks
Author: By
Last change: #99 optimize regex to "_sanitize_naughty_javascript" by adding a negative look behind

- add test cases
- change js test result (no longer false positive)

Signed-off-by: Benjamin Fahl <git@fahl-design.de>
[+]: optimize decoding the html-tags

thanks @gharlan for the fix: https://github.com/voku/anti-xss/issues/85#issuecomment-981093761
Date: 3 months ago
Size: 16,344 bytes

You need to be a registered user and login to get this file.

1,605,814 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmailHotmailStackOverflowGitHubYahoo