|
OK the only thing I can think of is take an array of all characters and build an if/for loop where if the array[] character == '<' go into a for loop until you hit a '>'. Quite system intensive and I'm sure someone will come along with a way to improve on this, or who actually uses arrays and can give you the code for it. Pretty much you'd be looping through all the characters and I don't know arrays to tell you how it'd be done.
__________________
PHP Code:
<?php echo "Hello World"; ?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
|