php - Stop HTML converting an & code -


i have html table displays information database, , 1 of database fields contains parameter list such as:

id=eff34-435-567rt-65u&notification=5 

but when display in table &not becomes ¬

i know can manually force print right way using

&not 

but rather able use force html ignore code can pull text straight database , print table without having regex find out if there & , replace them &amp; tried using <pre> tag did not work.

is there way force html print typed specific td field?

nothing practical (cdata doesn't have browser support in text/html mode). write proper html instead.

you should running comes out of database through conversion function make html safe anyway (to protect against xss if nothing else). php has htmlspecialchars(), tt has | html. whatever using should have other regex.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -