[MSWordUtils] convert HTML-Text to word?

Forge Component
(2)
Published on 7 Aug (13 days ago) by Stuart Harris
2 votes
Published on 7 Aug (13 days ago) by Stuart Harris

Hi Stuart,

maybe you can help me with another problem I have. In my project I'm using the CKEditor, which generates rich text (HTML), e.g. 

<ul>
                <li>Konzeption <strong>und</strong> Design,</li>
                <li>Projektplanung,</li>
                <li>Entwicklung,</li>
</ul>

Now I need to print this text without the HTML-tags but in the right format, e.g.

- Konzeption und Design,

- Projektplanung,

- Entwicklung,


I think right now this is not possible, right?

Do you know some simple way to do this?

Thanks for your help,

kind regards,

Juliane




Juliane Kramer wrote:

Hi Stuart,

maybe you can help me with another problem I have. In my project I'm using the CKEditor, which generates rich text (HTML), e.g. 

<ul>
                <li>Konzeption <strong>und</strong> Design,</li>
                <li>Projektplanung,</li>
                <li>Entwicklung,</li>
</ul>

Now I need to print this text without the HTML-tags but in the right format, e.g.

- Konzeption und Design,

- Projektplanung,

- Entwicklung,


I think right now this is not possible, right?

Do you know some simple way to do this?

Thanks for your help,

kind regards,

Juliane




Hi Juliane, yes this is currently not possible.  The underlying library (DocX) does not support it inserting HTML, but I noticed a comment that DocX will have support for it in version 1.7 (current version is 1.3).

Once it is supported by the library, it can then be included in the forge component.

This is probably not the answer you were hoping for, but I hope it helps.

Kind regards,

Stuart

Hi Stuart,

thanks for your detailed answer. I really appreciate it.


Kind regards,

Juliane