Skip to content

Unclosed p tag if there is a linebreak before [/group] #85

@erikyo

Description

@erikyo

hi @pwkip,

today a user of the wp forum made me discover that if you put a empty line before the row with [/group] in the cf7 mail template some non-validable code will be outputted.

cf7 mail template test:

[group g]
<span>yomama</span>

[/group]

[submit "submit"]

will return:

<div data-id="g" data-orig_data_id="g"  data-class="wpcf7cf_group">
<span>yomama</span></p>
</div>
<p><input type="submit" value="submit" class="wpcf7-form-control wpcf7-submit" /></p>

Not critical but this makes my plugin buggy because I use DOMDocument() to parse the form and unclosed tags are not allowed. So please fix :P

(wp 5.8 - cf7 5.4.2 - cf7cf 2.0.4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions