Closed Thread Icon

Topic awaiting preservation: Funy Escape slash problem thats unfunny (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12679" title="Pages that link to Topic awaiting preservation: Funy Escape slash problem thats unfunny (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Funy Escape slash problem thats unfunny <span class="small">(Page 1 of 1)</span>\

 
Trigger
Paranoid (IV) Inmate

From:
Insane since: Jun 2002

posted posted 04-05-2003 08:41

Hey, I've just about finshed work on my blog script
but when I input text eg.. I'll or We'll
I will get I\'ll or We'\ll .. how can I fix this problem? some one told me to use htmlspecialchars() but that was no good because it stripped out all html and i want to be able to use html in it, just not, the quotes,
I've had a look around and cant find anything that works, anyhelp as usual would be greatly appreciated

Thanks
Trigger

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 04-05-2003 09:38

If you can't find a function that works write one yourself.

Your function should take all the text in as a a variable and look within it, find all the " and ' and put one backslash before them and a backslash before any single \.

That's really aobut it.

Tyberius Prime does something similar to this in the new forum code he's writing...if you ask nicely he may share his code with you.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 04-05-2003 10:16

http://www.php.net/manual/en/function.stripslashes.php ...

Trigger
Paranoid (IV) Inmate

From:
Insane since: Jun 2002

posted posted 04-05-2003 11:00

Thanks TP
Skaarjj im kind of suffering from extrmely lazy syndrome and im still learning php so im just tryig to learn all the easy stuf first



Trigger
Paranoid (IV) Inmate

From:
Insane since: Jun 2002

posted posted 04-05-2003 19:36

I read my data from a file, I then put each line into an array, I then split up each line at

Trigger
Paranoid (IV) Inmate

From:
Insane since: Jun 2002

posted posted 04-05-2003 20:19

its amasing what double quotes can do,

problem Solved

Thanks
Trigger

« BackwardsOnwards »

Show Forum Drop Down Menu