php - html special characters source code -


i'm inserting database code looks this.

<h2>hello</h2> &lt;?php echo "foo";?&gt; 

how can prevent code executing header 2 , changing

<?php echo 'foo';?> 

is there way execute code , disable code on command? (i'll need able source code user can edit have written)

answers or links answers or hints find answers appreciated.

try referring post.

when doing that, use php function mysql_escape_string().


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -