Description: I wish the ability to save to plain, unstiled html5: tags only without any formatting, semantic structure only. Thank you Steps to Reproduce: 1.save some styled paragraph as html 2. 3. Actual Results: <p class="western" style="margin-bottom: 0cm; line-height: 100%"><font size="2" style="font-size: 11pt">Lorem ipsum dolor sit amet, consectetur adipisicing elit</font></p> Expected Results: <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit</p> Reproducible: Always User Profile Reset: No Additional Info:
Sounds rather like a job for an extension. I looked at HTML Tidy, http://www.html-tidy.org/ but unfortunately its simple command line options do not have a way to strip all the stuff you want. Using its API everything should be possible. For now, you can use an online tool like https://html-cleaner.com/ - its default options will do exactly what you want! It seems to be using TinyMCE, a popular rich text editor, which is typical in CMSes.
(In reply to Buovjaga from comment #1) > Sounds rather like a job for an extension. My opinion as well. The question is if HTML editing is in-scope of an office suite or not. I see it as a nice-to-have but not core feature and would let the details such as this tidying to external tools. OTOH, do we really need these default settings? <p class="western" style="margin-bottom: 0cm; line-height: 100%"> If possible, I would export just a <p> when the default is used.
(In reply to Heiko Tietze from comment #2) > > OTOH, do we really need these default settings? <p class="western" > style="margin-bottom: 0cm; line-height: 100%"> If possible, I would export > just a <p> when the default is used. that's exactly what I meant.