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¬ification=5
but when display in table ¬ 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 & 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
Post a Comment