RTF to plain text

From: Date: Fri, 16 May 2003 09:50:36 +0000
Subject: RTF to plain text
Groups: php.general 
Request: Send a blank email to php-general+get-147870@lists.php.net to get a copy of this message
Hi ppl. 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 plain text, I have searched on the net and have had NO success so I would really appreciate some help. thanx in advance Angelo

« previous php.general (#147870) next »