maybe i have overlooked something but i am having trouble loading a bunch HTML into the editor, the entire editor does not show up just a blank page. if i just use text that will appear, wich leads me to beleive i need to encode the data first, using PHP i have tried using both htmlspecialchars, and htmlentities with no luck. have i missed something?
Sun, 06/20/2004 - 08:39
#1
RE: loading HTML into editor.
my sollution for this problem is to strip all the newlines.
I use this function as a sollution:
function clear_newline($text) {
$text = ereg_replace("\n", "<br>", $text);
$text = ereg_replace("\r", "", $text);
return $text;
}