PDA

Click to See Complete Forum and Search --> : [RESOLVED] Strings <>"& Help With Output From DB


Shadows
Dec 20th, 2005, 12:31 AM
Hello I need some help, I'm making a tutorial system and I want users to be able to send information like that within code functions and some of this will contain nasty html symbols like "<>&..

Example: I submit a piece of code in my tutorial

<font color="#00000" size="14">Blah</font> OR strMessage = strMessage & " / " intCounta, those symbols are a problem. I want users to see them, not the browser to use them and converting them so & becomes &amp; is a pain.

On the output of people viewing the tutorial, I want them to see that code with its double quotes etc intact without the browser thinkings its actual HTML code.

McCain
Dec 20th, 2005, 03:43 AM
use the htmlentities() function

Shadows
Dec 20th, 2005, 05:39 PM
thanks I got it sorted eariler, thx