<?php $text = <<<TEXT <html>[sourcecode language='php']<?php echo "hello world"; ?>[/sourcecode]</html> TEXT; echo strip_tags($text); echo "\n---\n"; var_export( preg_replace(['#</?[a-z][^>]*>#i', '#\[/?sourcecode[^]]*]#i'], '', $text) );
You have javascript disabled. You will not be able to edit any code.