How to prevent WordPress to remove my embedded SVG images

I think you are missing dimension properties (height and width) while adding it in HTML, that’s why it is not appearing. For SVG files height and width is compulsory if you align it center or left without giving dimensions property it will break. I faced the same issue when I started my ChartExpo project.