Hi,
I see you were complaining about the exact same thing I was troubled by.
FYI: I have made a patch to Sigil to enable you to set a Preference for exactly which Entities you want to preserve in Code View.
Please see this post for the patch against Sigil trunk:
https://www.mobileread.com/forums/sho...5&postcount=46
And this thread for one other bug fix you may be interested in and some discussion.
https://www.mobileread.com/forums/sho...d.php?t=242391
So if you know how to build from source, please test this patch and let me know if it does what you need. If you can not, I can compile a Sigil.dmg for Mac with this patch and post it for you and probably do a Linux build as well, but I can not do a Windows build so you are out of luck there.
Hope this helps,
KevinH