Skip to content Skip to sidebar Skip to footer

Convert Rtf To Html In Javascript

Is there a way to convert RichTextFormat to HTML in Javascript? Iam trying to paste the RTF content copied , from clipboard iam getting the text/rtf content, now i need to show it

Solution 1:

You may wish to adapt this NodeJS package: rtf2html. I understand this has already be done with an older version, as you can see in this Github repository.

After you get the corresponding HTML code, you can add it to your container using the usual DOM methods, or a library like jQuery if you are already using it.

Post a Comment for "Convert Rtf To Html In Javascript"