Hi,
I have a problem with my implementation/configuration of fckeditor in that when users use the insert/edit link tool, the resultant text ends up containing a backslash (\) to escape the double quotes. This is implementing fckeditor in a PHP application.
e.g <a href=\"http://www.whatever.com\">link text</a> instead of <a href="http://www.whatever.com">link text</a>
This means that when the link is previewed the path becomes something like http://www.domain_for_application/%5C%2 ... .com%5C%22 instead of http://www.whatever.com. I am also wondering where the %5C%22 is coming from and whether that will also be a problem.
If anyone has a solution to suggest, it will be greatly appreciated.
Phil
Wed, 02/18/2009 - 13:19
#1
Re: insert/edit link: escaped double quotes inserted in a hrefs
I'm having he same problem here. Did you allready manage to make the / dissapear? If so, how did you do this?
best regards,
Ruud.
Re: insert/edit link: escaped double quotes inserted in a hrefs
In short, without knowing the exact methodology you're using to communicate and store the data, it's kind of hard to determine where the extra slashes are coming from...
Re: insert/edit link: escaped double quotes inserted in a hrefs
I can now see that this is easily solvable. I have some PHP code which fetches the text which was subject to FCKeditor out of the database, so I have a line of PHP code like this:
$templateContent .= '<div>' . $stationeryDetails->StationeryOneWayLink . '</div>';
($stationeryDetails->StationeryOneWayLink is just the database record).
The text pulled out of the database contains ........ la la la la <a href=\"http://www.whatever.com\">some link text </a> la la la .....
I will easily be able to post-process the contents of $templateContent to take care of the back-slash with str_replace or ereg_replace or something. Will only take a few minutes when I've got time.
Re: insert/edit link: escaped double quotes inserted in a hrefs