Author: helixpoint | Posted on: 10/9/2008 12:19:35 PM | Views : 464

I get an error when I do this.
<script>; oEditor.FCKUndo.SaveUndoStep(); FCK.InsertHtml('<div align="center">We'll all win here..........'); window.parent.Cancel(); </script>;

Notice the single quote in We'll

How do I deal with that

I tried the following with no luck

sb = new StringBuilder();
sb.Append(" <script>; ");
sb.Append(" oEditor.FCKUndo.SaveUndoStep();");
sb.Append(" FCK.InsertHtml('" + sb1.Replace("'", "''") + "');");
sb.Append(" window.parent.Cancel();");
sb.Append(" </script>; ");
...

Go to the complete details ...