Re: [PHP] Get rid of line breaks

2006-06-18 Thread Martin Alterisio
2006/6/18, Peter Lauri <[EMAIL PROTECTED]>: Best group member, I have a variable $content that is taken from a database. It contains line breaks and the $content will be posted with line breaks. I need to use this to insert this into a JavaScript function: $output = 'writeRichText(\'rte

[PHP] Get rid of line breaks

2006-06-18 Thread Peter Lauri
Best group member, I have a variable $content that is taken from a database. It contains line breaks and the $content will be posted with line breaks. I need to use this to insert this into a JavaScript function: $output = 'writeRichText(\'rte1\', \''.$content.'\', 400, 200, true, fals