How to be escape Variables and options when echo?
I am very new to wordpress development. When I submitted my plugin for review it was rejected because Variables and options must be escaped when echo'd. How do i escape the following 2 blocks of code?
label for=?php echo $this-plugin_name . '-' . $switch['id']; ?
and
echo styleimg[ci-src] {opacity: 0;} img.ci-image-loaded {opacity: 1;}/style;
Topic escaping plugin-development plugins Wordpress
Category Web