Hi,
Lots of people are experiencing problems with the & character to transformed to &amp, including me.
I even searched for all relevant instances of & replacements and replaced them all, even with ForseSimpleAmpersand option set to true I can not seem to force a normal/simple character, that option doesnot seem to work, for me at least.
At one point I just stop puttin any effort in it, but the problem needs fixing, in my CMS system this is a nightmare. So, I went for a serverside solution, and a simple one also.
Now, I still really love to fix this in the FCK javascript code itself, so if anyone has an idea, I hit a brickwall.
Look in the fckeditor.php file for this part of code and replaced the line starting with $HtmlValue;
function CreateHtml()
{
//$HtmlValue = htmlspecialchars( $this->Value ) ;
$HtmlValue = str_replace ("amp;", "", htmlspecialchars( $this->Value ) );
It seems that all amp; instances are removed which will leave with only instances of the & character, which is ofcourse invalid (X)HTML. But, it seems when FCK is loading you html the & characters are correctly replaced.
Its nothing fancy, but i could not find ANY FCK javascript solution on this forum or google, just dead-end posts with people having the same problem, maybe this post will be of help to anyone..
[+_-}
Agent-E
Lots of people are experiencing problems with the & character to transformed to &amp, including me.
I even searched for all relevant instances of & replacements and replaced them all, even with ForseSimpleAmpersand option set to true I can not seem to force a normal/simple character, that option doesnot seem to work, for me at least.
At one point I just stop puttin any effort in it, but the problem needs fixing, in my CMS system this is a nightmare. So, I went for a serverside solution, and a simple one also.
Now, I still really love to fix this in the FCK javascript code itself, so if anyone has an idea, I hit a brickwall.
Look in the fckeditor.php file for this part of code and replaced the line starting with $HtmlValue;
function CreateHtml()
{
//$HtmlValue = htmlspecialchars( $this->Value ) ;
$HtmlValue = str_replace ("amp;", "", htmlspecialchars( $this->Value ) );
It seems that all amp; instances are removed which will leave with only instances of the & character, which is ofcourse invalid (X)HTML. But, it seems when FCK is loading you html the & characters are correctly replaced.
Its nothing fancy, but i could not find ANY FCK javascript solution on this forum or google, just dead-end posts with people having the same problem, maybe this post will be of help to anyone..
[+_-}
Agent-E