Page 1 of 1

Generate HTML in Text view without extra attributes

Posted: Fri Jul 12, 2024 2:53 pm
by ann.jensen
Hi,
I want to use Oxygen XML Author to paste in text into Author view and generate HTML in Text view but it is adding unnecessary attributes like
style and shape attributes.
I wonder is it configurable to ask it to not add these attributes?
Thanks in advance,
Ann

Re: Generate HTML in Text view without extra attributes

Posted: Mon Jul 15, 2024 7:40 am
by Radu
Hi Ann,
Just to see if I understand, are you copying content from a web browser and then pasting the content in an HTML document opened in Oxygen in the Author visual editing mode? If those @style and @shape attributes show up, this means they were part of the pasted HTML content, Oxygen does not know if they are really necessary or not. Maybe you can create a custom XML refactoring action in XSLT for example to remove them later: https://www.oxygenxml.com/doc/versions/ ... tools.html
Or use some kind of regular expression Find/Replace in the Text editing mode to remove the attributes.

Regards,
Radu