If you have created shortcodes in Wordpress, you may have noticed that when you get the content of your shortcode, it's wrapped in html paragraph tags.
I don't know why the progammers did that. It seems like a very bad idea to me to add formatting to the actual content.
I've found a post that presents this solution :
But i'm wondering : Is there a solution proposed by the wordpress API itself, or something that i am missing here ?