< character breaks shortcode
-
My blog is about coding and I created a shortcode to display code in a certain format.
The problem is when I use the character ‘<‘ (as in ‘less than’) inside the shortcode content, it seems to be interpret it as html symbol < and totally messes up my shortcode.I read online that this was introduced in WordPress with do_shortcodes_in_html_tags which parses the content for HTML tags.
Is there a way to avoid this feature and display the < character as is in the shortcode content?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘< character breaks shortcode’ is closed to new replies.