Word code cleaner

J

Juan C. Santaella

Hi, can anyone tell me where to find a ASP function that cleans Word code
before sending to the database.
Thanks in advance.

JC
 
J

Juan C. Santaella

Hi, when you copy from a MS WORD document and paste into a textarea control
in a asp page. If you take a look at the code, its not simple text, and
sometimes when you insert it into a DB, gives you an error.
JC
 
L

ljb

Juan C. Santaella said:
Hi, when you copy from a MS WORD document and paste into a textarea control
in a asp page. If you take a look at the code, its not simple text, and
sometimes when you insert it into a DB, gives you an error.

Although this doesn't "clean" the text I have bypassed the DB errors by hex
encoding the string and inserting it into the DB. When you display it again
you need to un-hex encode it. This code will do it
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6804&lngWId=4

LJB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top