so I have the following code:
$tag = 'script';
$r = '#(<'.$tag.'.*?>).*?(</'.$tag.'>)#';
echo $r;
but then when it echoes, it merely echoes this: #().*?()#
not even the ‘script’ is being echoed…..and notice that the less than equal sign, etc are not there…
what am I doing wrong?
do view source to see why.
It will probbably be:
Which each browser will display as
As it hides any XML tags from the parsed view, i.e hides the
<script.*?>and the</script>which can be seen, though, in the unparsed version->view source