How to place HTML text into LibreOffice document using LibreOffice API

Hi,

I am trying to insert a String with HTML tags into odt using LibreOffice API. But I would like that it should be interpreted likes HTML format.
For example, from this input "<b>doc</b>" must display "doc" (the string in bold style).

One way it is by saving HTML text in temp file in the system and import this file into odt.

Is there a simplest way to do that?

Regards,

Yupanqui MUNOZ