In my sidebar widget, I'm attempting to wrap the widget contents in a paragraph tag:
$args = array(
'id' => 'applause-2',
'name' => 'Applause 2',
'description' => 'Main sidebar, below 1st horizontal rule',
'before_widget' => '<p>',
'after_widget' => '</p>'
);
But when I check my output, it looks like the paragraph tag is getting automatically closed due to the space:
<p> <div class="textwidget">"Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Donec malesuada mauris dui, at auctor mauris tempor ac.
In hac habitasse platea dictumst. Vestibulum sed dolor velit." <a href="#" class="read-more">(read more)</a></div>
<img src="/wp-content/themes/italysource/img/hr.png" class="hr"></p> </div>
INSTEAD the browser is rendering this:
<p></p>
<div class="textwidget">
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada mauris dui, at auctor mauris tempor ac. In hac habitasse platea dictumst. Vestibulum sed dolor velit." <a href="#" class="read-more">(read more)</a></div>
<img src="/wp-content/themes/italysource/img/hr.png" class="hr"> <p></p>
</div>
Is there a workaround, or something I can do to prevent this from happening?
is adding an extra
](http://stackoverflow.com/questions/10763780/putting-div-inside-p-is-adding-an-extra-p)