954,576 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help for rich text editor....

Hello,
I am having a rich text editor in my website it works fine when formatting text like bold etc. but the problem is that when i retrieve data from database there is no bold, italic or underline etc.Please help me. you can find the script here.
http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm

quickbird
Newbie Poster
8 posts since Aug 2009
Reputation Points: 10
Solved Threads: 0
 

Hi there,
I think the problem probably lies with your sanitizing methods.
When you insert (or update) the data into the database, make sure that you run the function "addslashes()" on the text from the editor before putting it into your sql. And then when you retrieve it from the database, run the "stripslashes()" method on the text.
That should sort your problem out.

Menster
Junior Poster
175 posts since Jun 2009
Reputation Points: 49
Solved Threads: 22
 

It doesn't work.It only displays text without any kind of formatting the user has done.

quickbird
Newbie Poster
8 posts since Aug 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You