开发者

Behaviour of RTF in browsers

I am receiving text from a backend and displaying it on my web page. The text could be in one of three formats: plain text, HTML, and RTF. I am sure the first two will render without any problems, or loss of formatt开发者_如何学Going.

Will RTF be interpreted and rendered properly by web browsers?


No, RTF will not render at all.


The actual browser itself will not render the RTF directly because a browser renders html.

However, the browser will receive the RTF sent from the server and will launch whatever default RTF editor is in place on the end users system. By default on windows, this is typically wordPad.

However if an end user has Microsoft Word in place or another RTF editor this could be the editor that gets launched. The end user will then be able to read the RTF in this editor.

On my system pushing RTF to a client will launch Word and give me the option to either Open or Save the RTF file immediately.

I hope this helps out.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜