codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $html = '<!doctype html> <html> <head> <meta charset="utf-8"> <title> hey </title> <script> alert("hello"); </script> </head> <body> hey </body> </html> '; $html = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $html); echo $html; ?>
Private
[
?
]
Run code
Submit