Re: RTF to HTML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here's some code I wrote -- feel free to use it.  It's based off of some
other code I found around the 'net.

http://nambco.com/gmc/rtf/rtf2htm/rtf2html.inc.phps

Peter

On Thu, 15 May 2003, Angelo Zanetti wrote:

> Hi there seems to be some confusion about my post.
>
> I have a table and in it there are records which are saved in RTF format. Now on my website i have a php script that does a select on the table and returns the records, each record is entered into a row. I need to convert each record which is in RTF to normal text.
>
> This what a record will look likein RTF format:
>
> {¬rtf1¬ansi¬ansicpg1252¬deff0¬deflang1033{¬fonttbl{¬f0¬fnil¬fcharset0 MS Sans Serif;}}
> ¬viewkind4¬uc1¬pard¬f0¬fs17 hello
> ¬par }
>
>
> All i want is to display (in this case):
> hello (with relevant italics, bold and underline.)
>
> So basically what i need is to convert RTf to normal text, I apologize if there was any confusion from my behalf.
>
> thanx in advance and thenx to those who have already answered.
>
> Angelo
>

---------------------------------------------------------------------------
Peter Beckman                                                  Internet Guy
beckman@purplecow.com                             http://www.purplecow.com/
---------------------------------------------------------------------------

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux