HTML Elements in my WP Plugin being generated in JS. Security and Translated Text Question about this method being used

HTML Elements in my WP Plugin being generated in JS. Security and Translated Text Question about this method being used

tech