how to convert rich text format to display in react

66 Views Asked by At

I have rich text format fetched from mssql database and i want to display it correctly in my react application, and can't seem to find any library and also i need a library with typescript(type safed),any ideas. here is how RTF looks:

{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\
fcharset0 Verdana;}{\f1\froman\fprq2\fcharset0 Times New Roman;}
{\f2\fnil\fcharset0 Trebuchet MS;}} \viewkind4\uc1\pard\ltrpar\f0\fs20 
Sharp costophrenic angles bilaterally . \par \par 
\pard\ltrpar\sl360\slmult1 There is no cardiac enlargement. \par There is 
no active lung parenchymal lesion. \par \f1\fs28 \par \pard\ltrpar\f0\fs20
 Impression:Normal chest xray\f2\fs20 \par }
0

There are 0 best solutions below