Welcome Guest, Not a member yet? Register   Sign In
Display raw content instead of html
#4

[eluser]CroNiX[/eluser]
Then run it through htmlentities() so it converts the opening code tags so the browser will display them instead of execute them and then display it between <code> tags in the html.

Code:
&lt;?php
$your_code = '&lt;?php echo "hello"; ?&gt;';
?&gt;
<code>&lt;?php echo htmlentities($your_code); ?&gt;</code>


Messages In This Thread
Display raw content instead of html - by El Forum - 11-07-2013, 02:35 PM
Display raw content instead of html - by El Forum - 11-07-2013, 04:13 PM
Display raw content instead of html - by El Forum - 11-07-2013, 04:23 PM
Display raw content instead of html - by El Forum - 11-07-2013, 04:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB