PHP Escaping Html Tag:
During the parsing of a file by PHP, it looks for opening and closing tags which indicates the starting and closing point of PHP. The parser ignores the coding outside of the tag. In general we use <?php ?> tag to mention the PHP portion. It is not mandatory to mention the closing tag all the time, unless you need to embed html or any other scripting tag.
In the example given below we are discussing three kind of special tags, first one is available in all php version, but rest of the two are not, to make it available you need to do some small changes in php.ini file. Find out short_open_tag and asp_tag, change the default value off to on and after that restart the server.
Example of PHP Escape Html Tags:
<
script language="php">echo "hello";
</
script><?
echo "this is simple text <Br/>"; ?><%echo "This is asp style";%>
Output:
helloIf you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.