Even though I have disabled autop for shortcodes, I end up with a lot of
<p> tags in the generated form. Here's a snippet:
<div id="editrow-email-Primary" class="crm-section editrow_email-Primary-section form-item"> <div class="label"> <label for="email-Primary"> Email <span lass="crm-marker" title="This field is required.">*</span> </p><p> </label> </div> <div class="edit-value content"> <input maxlength="254" size="30" name="email-Primary" type="text" id="email-Primary" class="big crm-form-text required" /> </div> <div class="clear"></div>
Note the stray
</p><p> in the middle. But while a bit wrong, this is ok. What's really a problem is that the generated JS code for the datepicker also gets a bunch of random
This completely breaks the JS.
Any hints on how to figure out where these tags are coming from would be helpful. This sure looks like autop acting up, but I don't see how it could affect the shortcode's generated content, even when it might wrap the shortcode itself.