Ask Your Question

How do I export a clean html file? [closed]

asked 2013-02-04 16:08:03 +0200

Chris Vella gravatar image

updated 2013-03-11 16:59:48 +0200

The Save as HTML option in Libreoffice produces an html file with a lot of markup. Is there an easy way to export a cleaner html file for the production of an epub or for web publishing? How do I clean an HTML produced by Libreoffice?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-10-26 19:58:34.818962

1 Answer

Sort by » oldest newest most voted

answered 2013-03-10 04:44:52 +0200

qubit gravatar image

Hi @Chris Vella,

The HTML save/export functionality is designed to create an HTML file with high fidelity to the original ODT.

If you want a simpler HTML file, you could try removing the CSS and many of the META tags from the HTML file. Would that help?

What's your use-case here? Do you need to import this HTML into another application?

edit flag offensive delete link more


I updated my question. The use of having a cleaner html is either for web publishing or epub production, where fidelity to the original layout is not important.

Chris Vella gravatar imageChris Vella ( 2013-03-11 17:01:52 +0200 )edit

I would like an option to create an HTML file with high fidelity to the structure without trying to be pixel-perfect in terms of fonts, spacing, etc. That just adds cruft to the file. I know I can find and remove that extra code, but that is annoying, and it would be better to have the option of not having it in the first place.

scotclose gravatar imagescotclose ( 2014-07-16 04:39:27 +0200 )edit

Question Tools


Asked: 2013-02-04 16:08:03 +0200

Seen: 1,517 times

Last updated: Mar 11 '13