need to get rid og new line extra spaces
Hello,
I have a wysiwig textarea editor, something like this one, I want to
update my text, the content is retrieved from database and inserted
into this textarea through a javascript function, the first arguemnt
passed, which is the data from database, contents additional new
lines, so this causes a javascript error,
I have tried these:
$des = mysql_result($select2 , 0 , 'des');
$des = stripslashes($des);
$des = html_entity_decode($des);
$des = str_replace("\n", " ", $des) ;
$des = preg_replace("/\r?\n/", "", $des);
I still see new lines after divs, uls, ols, li(s) lists
Help appreciated
itpvision@xxxxxxxxx
.
Relevant Pages
- need toi
... I have a wysiwig textarea editor, something like this one, I want to ... the content is retrieved from database and inserted ... into this textarea through a javascript function, ... I still see new lines after divs, uls, ols, lilists ... (comp.lang.php) - Re: need toi
... I have a wysiwig textarea editor, something like this one, I want to ... the content is retrieved from database and inserted ... into this textarea through a javascript function, the first arguemnt ... Why are you calling stripslashes, then html_entity_decode, then replace \n by space? ... (comp.lang.php) - Re: Pass value from javascript to vb.net to database without postback...Possible?
... I have a webpage that contains a plug-in. ... > and, using vb.net as the code behind language, send it to a database ... > a javascript function is called in the containing webpage. ... > reloads, my plug-in is reloaded and instead of the user being at say ... (microsoft.public.dotnet.framework.aspnet) - RE: Secured application information
... before allowing them to participate in quiz. ... The first ASP page (I am again assuming that you ... The way to go about this would be to create a JavaScript function that is ... database and you only want them to edit it, ... (microsoft.public.sqlserver.clients) - Access calculated field name?
... I've got an asp page that creates fields on the page based on database ... javascript function, but I'm not sure how to access their data. ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... (comp.lang.javascript) |
|