I put the caption on a picture like this, the blog looks good,
but in the compact view, I receive this problem
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
That's not an HTML tag, it's a shortcode. If your theme used the
the_excerpt() function for displaying the 'compact version' of the post content then this wouldn't appear. WordPress strips shortcodes out of post excerpts to prevent this happening.
If your theme is using its own method for generating the excerpt then its developer needs to fix the theme so that excerpts properly remove shortcodes. This can be achieved with the