|
-
Dec 20th, 2005, 01:31 AM
#1
Thread Starter
Lively Member
[RESOLVED] Strings <>"& Help With Output From DB
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 & 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.
Last edited by Shadows; Dec 20th, 2005 at 06:39 PM.
-
Dec 20th, 2005, 04:43 AM
#2
Fanatic Member
Re: Strings <>"& Help With Output From DB
use the htmlentities() function
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Dec 20th, 2005, 06:39 PM
#3
Thread Starter
Lively Member
Re: Strings <>"& Help With Output From DB
thanks I got it sorted eariler, thx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|