strip php tags from code ?
| From: | David D | Date: | Mon, 06 Jan 2003 12:47:36 +0000 |
| Subject: | strip php tags from code ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-131326@lists.php.net to get a copy of this message | ||
I only want to keep html code of a page.
I want to remove php tags.
Some tell that strip_tags is not adapted.
sample of what i want to do:
<html>
na
<?php echo 'na';?>
</html>
->
<html>
na
</html>
php tags can be :
<? ?>or <?= ?>
or <script language='php'></script> /i
Merci.
.