RTF to HTML
| From: | Angelo Zanetti | Date: | Thu, 15 May 2003 13:09:21 +0000 |
| Subject: | RTF to HTML | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-27774@lists.php.net to get a copy of this message | ||
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