Ask Your Question

Is there a simpler 'export to html' function? [closed]

asked 2013-09-20 13:37:16 +0200

okasch gravatar image

updated 2013-09-20 17:37:51 +0200

I am searching for a much simpler export-to-html function, so that:

Hello, this is an example of some formatted text that wants to be transformed to the html way.


Hello, this is an <b>example</b> of some <i>formatted text</i> that wants to be transformed to the <a href="">html</a> way.

The result could replace the original text or it could show up in a new window. In a document only marked text should be operated. Basic styles like bold, italic, underlined and Hyperlink would be sufficient for me.

I guess, this needs to be programmed (makros), but I don't have any clue how to do that. Is there anybody, who can give me a hint?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-11-09 09:41:45.105199


Welcome to Ask.LibreOffice. I do not know of any extension to do that, but you could learn to create a macro. Search around the internet for tutorials and examples. For example, look at and

carnendil gravatar imagecarnendil ( 2013-09-20 18:30:03 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2013-09-21 02:18:50 +0200

oweng gravatar image

updated 2013-09-21 02:19:51 +0200

This lengthy and detailed thread on character styles is related to your question. The remarks in that thread by @CyanCG are especially worth reading as they indicate the problem with obtaining a more simple form of HTML markup.

The short answer is that there is no current method of achieving what you require (as @carnendil indicates). LO makes extensive use of the <span> element rather than <i> or <b> (or the recommended <emphasis> and <strong>) elements. The <a> element is not such an issue.

edit flag offensive delete link more

answered 2013-09-20 22:43:27 +0200

m.a.riosv gravatar image

updated 2013-09-20 22:44:44 +0200

Have you tried in Menu/File/Export?, one the options is xhtml.

edit flag offensive delete link more


The XHTML format makes use of <span> elements rather than direct encoding/styling using <b> or <strong>.

oweng gravatar imageoweng ( 2013-09-21 02:12:22 +0200 )edit

Of course I tried Menu/File/Export - but this is just my point: This function is creating a too complex code that is simply unhandy.

okasch gravatar imageokasch ( 2013-09-25 17:33:59 +0200 )edit

Question Tools

1 follower


Asked: 2013-09-20 13:37:16 +0200

Seen: 254 times

Last updated: Sep 21 '13