Problem :
I’m looking to take some RTF code, such as this sample excerpt below, and displaying it in an HTML page. I don’t need it to be editable, and don’t want it to be at this time. In researching this I’ve seen plenty of RTF-capable WYSIWYG editors, but that’s not really what I’m after.
{}
{rtf1ansiansicpg1252uc1htmautspdeff2
{fonttbl{f0fcharset0 Times New Roman;}
{f2fcharset0 Segoe UI;}
{f3fcharset0 Microsoft Yi Baiti;}
}
{colortblred0green0blue0;red255green255blue255;}
lochhichdbchpardplainltrparitap0
{lang1033fs18f2cf0 cf0ql{fs24f2
{lochf3ltrch Hello }
Is there any way to display RTF in an HTML page? Would it be better to try and parse it into HTML/CSS or is that even possible? I also considered parsing it on the .NET side, but haven’t came across any solutions.
Any insight would be greatly appreciated!
Solution :
FWIW, I’m going to go with the solution found here, as it seems the most flexible.