Hello,
I added CKEditor into my forum system and now I'm having an issue with the links users include in there posts.
If I add a link to Goolge for example. The link is being posted into my database as:
<p><a href=\"http://www.google.com\">Google</a></p>Therefore, when the link is clicked the user is being redirected to:
http://www.mysite.com/"http://www.google.com"The same is true for all the images I try to insert into the text.
The editor is seeing them as:
http://www.mysite.com/"http://www.myimglink.com"Can someone tell me how I can fix this issue?
Thanks in advance
I figured out that the problem was that textarea was being binded and then queried to the database which meant all the single and double-quotes in the html were being escaped with a "/" which made the "href" and "src" fields not work properly.
The php function "stripslashes()" should fix the job.