homer.favenir Posted May 13, 2009 Share Posted May 13, 2009 hi, may ask how can i echo tags? $input = '<regionx refid="CAX\SCAQMD\rgVII\rl715\"> Regulation VII, Rule 715 </regionx>'; echo $input; but the output is Regulation VII, Rule 715 i need to be the output is exactly <regionx refid="CAX\SCAQMD\rgVII\rl715\"> Regulation VII, Rule 715 </regionx> thanks! Quote Link to comment Share on other sites More sharing options...
gffg4574fghsDSGDGKJYM Posted May 13, 2009 Share Posted May 13, 2009 Try this : $input = '<regionx refid="CAX\SCAQMD\rgVII\rl715\"> Regulation VII, Rule 715 </regionx>'; $input = htmlentities($input, ENT_QUOTES); echo $input; http://www.php.net/manual/en/function.htmlentities.php Quote Link to comment Share on other sites More sharing options...
homer.favenir Posted May 13, 2009 Author Share Posted May 13, 2009 thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.