Forum Moderators: open

Message Too Old, No Replies

Strip RTF in ASP?

Anyone know of a function that does this via Regular Expressions?

         

digitalv

5:34 pm on Jun 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not familiar enough with RTF encoding to know how to write this using regular expressions, but I need to figure out how to strip out RTF encoding in ASP and just display the plain text. Anyone have any ideas?

wardbekker

7:05 am on Jun 26, 2006 (gmt 0)

10+ Year Member



digitalv,

There are components available for ASP that can convert RTF to HTML, and maybe clear text. Search for "asp component RTF" on you favorite search engine and you will propably run into some of them.

digitalv

6:54 pm on Jun 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've come across a couple of these, but I'd prefer to do it without a component. The DLL's tend to be on the large side too from what I've noticed, I'm assuming there must be some type of library that's embedded within. Heck even a SQL function that converted it to HTML would work because then I could easily strip out the HTML and convert it to text.