停用解析器以查找页面中的某个特殊位置

how can deactivate parser for some special place in the page ,
for example if i have some php or javascript code in my database , and retrieve them in page, they do not execute!!
another example is facebook status ,when it post ,facebook ignore any kind of code like html,php,javascript and etc

for example : i have this :

<?php for($i=0 ; i <= 5 ; i++){ echo $i; }?>;

then i see smth like this in browser :

012345

how can i prevent executaion of this code (instate of 012345 , show me <?php for($i=0 ; i <= 5 ; i++){ echo $i; }?>;)

Just guessing that you're talking about escaping HTML:

echo htmlspecialchars($stringContainingCode);

See http://php.net/htmlspecialchars and The Great Escapism (Or: What You Need To Know To Work With Text Within Text).