If a shortcode is surrounded by <p> tags, replace with with a div container containing a span tag. If a shortcode is inline with text, only the span tag is returned.