Can you put a <br> or <p> inside a caption
I can insert a <(br)> to a caption and it works, but I need to know if that actually presents a problem that I'm not aware of. If not and you can place html in the caption, is there something better I should use other than a <(br)>? (Pardon the parenthesis, this post keeps thinking it's code.)
Comments
Hi,
In caption, you can use HTML tags, but only "filtered HTML" that are considered by WP as safe such as: <a>, <strong>, <b>, <em>, <i>, <span>, <br>.
https://developer.wordpress.org/reference/functions/wp_kses/
Such tags as <p> or <div>, are not allowed to be used there.
Best regards