Changeset 14557
- Timestamp:
- 2007/06/08 20:22:22 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/test/adachi/test4.php
r14540 r14557 1 1 <?php 2 $value = true;3 $p = preg_replace("/<script.*?>|<\/script>/", '<script>', $value);4 2 5 var_dump($p); 3 $str = 'test@<script>alert(document.cookie)</script>.com;'; 4 $pt = "/<script.*?>|<\/script>/"; 6 5 6 preg_matche_all($pt, $str, $match) 7 8 //$p = preg_replace("/<script.*?>|<\/script>/", '<script>', $value); 9 10 var_dump($match); 11
Note: See TracChangeset
for help on using the changeset viewer.