shortcode – Not to escape a text

Question

In a shortcode I

ob_start(); 
echo('<div class="wow rotate-center" style="float:left;"><a href="' . $thumbnail_url . '"><img class="lazyload" data-bg="'. $thumbnail_url .'" src="'. $thumbnail_url .'"/></a></div><div>'. wp_kses( $shortcode_atts["text"], $allowed_html ) .'</div>');
return ob_get_clean();

The shortcode is used like this:

[n-imaged-list image_id=315 text="<span class="n-numbered-list-left">1</span>Lorem ipsum."]

The problem is that the text is escaped.

enter image description here

Could you help me not to escape the text?

0
Kifsif 1 month 2021-10-24T05:42:10-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse