Unstoppable Domains

Wysiwyg editor problems posting to database...

Spaceship Spaceship
Watch

flishess

Established Member
Impact
6
I am having a problem with this editor posting the correct source code to my database: http://www.dynamicdrive.com/dynamicindex16/openwysiwyg/index.htm

When the source of the editor is posted to my database for some reason it is adding "\" in the following locations...

Code:
<FONT style=[COLOR="Red"]\[/COLOR]"BACKGROUND-COLOR: #996600[COLOR="Red"]\[/COLOR]">alfjksa;lfjksadl;jfsladjflsakjfl;kjflkj</FONT>

the random text is just a test I did, the source on the editor shows correctly, it's just after the php script posts the info to the mysql database it is adding in the extra bit of code.

I think that I need to add this code into where I want the info to display, but I am not sure how to do it:

Code:
string stripcslashes ( string $str )

something like

<? string stripcslashes (string $str );
echo "$description";
?>

I know I am probably way off with the coding part, however can anyone help?
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
PHP:
<?php
echo stripslashes("<FONT style=\"BACKGROUND-COLOR: #996600\">alfjksa;lfjksadl;jfsladjflsakjfl;kjflkj</FONT>");
?>
For more info: http://php.net/stripslashes
 
Last edited:
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back