You are here: Re: Text in rtf document is always tagged in html...little snippet of code to look at « All PHP « IT news, forums, messages
Re: Text in rtf document is always tagged in html...little snippet of code to look at

Posted by Janwillem Borleffs on 12/22/05 00:04

GooderThanYou wrote:
> I have an RTF using IFRAME and it works beautfiully, just this code,
> everything is fine and perfect except the <<COMMENTS>> is replaced
> with something similiar to this:
>
> ab<STRONG>cdefghji</STRONG>jklmnop
>
> when it opens the file as an RTF, if you echo $text string on the web
> page it is bold and the way it should be... any ... umm suggestions?
>

As you already have noticed, RTF documents do not use HTML to format texts.

To mark a text as bold in RTF documents, you would do something as follows:

ab\b cdefghji\b0 jklmnop

So ' \b ' to indicate the start of an emphasized section and ' \b0 ' to
mark the end of it. Also mind the spaces after '\b ' and '\b0 '.

For more info about RTF, see: http://www.biblioscape.com/rtf15_spec.htm


JW

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация