How to convert rich text format to display in react

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 }

please it is urgent.

thanks bro, but i already checked that and the library does not even exist

PS C:\Users\user\Desktop\freecodecamp\Alem expect solns\MedAXS Portal> npm install react-rtf-parser
>>
>>
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/react-rtf-parser - Not found
npm ERR! 404
npm ERR! 404  'react-rtf-parser@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
                                                                      npm install react-rtf-parser
>>  ERR! A complete log of this run can be found in: C:\Users\user\AppData\Local\npm-cache\_logs\2024-03-01T09_25_11_322Z-debug-0.log
>> C:\Users\user\Desktop\freecodecamp\Alem expect solns\MedAXS Portal>
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/react-rtf-parser - Not found
npm ERR! 404
npm ERR! 404  'react-rtf-parser@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in: C:\Users\user\AppData\Local\npm-cache\_logs\2024-03-01T09_27_01_612Z-debug-0.log
PS C:\Users\user\Desktop\freecodecamp\Alem expect solns\MedAXS Portal> 

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.