Nesting tags is invalid HTML
-
Would you mind fixing your /includes/class-settings.php file (lines 907–916) so it outputs valid HTML? Or at least allow the HTML to be filtered? In HTML, <p> tags cannot be nested, so a simple fix would be changing the outer <p> to a <div>:
<p class="ctct-optin-wrapper" style="padding: 0 0 1em 0;">
<p><?php echo esc_attr( $label ); ?></p>
<?php foreach ( $lists as $key => $list ) { ?>
<label for="ctct_optin_<?php echo esc_attr( $key ); ?>">
<input type="checkbox" value="<?php echo esc_attr( $key ); ?>" class="checkbox" id="ctct_optin_<?php echo esc_attr( $key ); ?>" name="ctct_optin_list[]" /> <?php echo esc_attr( $list ); ?>
</label>
<br/>
<?php } ?>
<?php echo wp_kses_post( constant_contact()->get_display()->get_disclose_text() ); ?>
</p>As it stands, modern browsers simply close the p.ctct-optin-wrapper, which means the entire block cannot easily be styled, and there’s a hanging empty paragraph at the end as well.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.