I have the following code:
<?php
$result = '<test>hello</test>';
echo $result;
When I execute it, then I only receive
hello
It seems so, that PHP deletes these tags in the string, when i try to give it out. How can I preserve these tags in the string?
you can use
htmlentities()php function : in your case,or
better approach will be