oziresrds / html-to-rtf

Convert html to rtf format in the server
38 stars 43 forks source link

<ul> and <ol> tags are not working #13

Closed ramonribeiro96 closed 4 years ago

ramonribeiro96 commented 4 years ago

I'm trying to convert this:

let text = Converter.convertHtmlToRtf('<p>TESTE2</p><ul><li>&nbsp; TESTE</li></ul><ol><li>&nbsp; outro</li></ol>')

but, my return is this:

{\rtf1\ansi\deff0{\fonttbl {\f0\fnil\fcharset0 Calibri;}{\f1\fnil\fcharset2 Symbol;}}{\colortbl ;}{\pard TESTE2 \sb70\par}{{\*\pn\pnlvlblt\pnf1\pnindent0{\pntxtb\'B7}}\fi-360\li720\sa200\sl276\slmult1\lang22\f0\fs22{\pntext\tab} TESTE \par}{{\*\pn\pnlvlbody\pnf0\pnindent0\pnstart1\pndec{\pntxta.}}\fi-360\li720\sa200\sl276\slmult1{\pntext\tab} outro \par}}

oziresrds commented 4 years ago

What's the problem? This .rtf generate this output: TESTE2 TESTE outro