Skip to content

Misusing with HTML breaks the HTML #224

@spikyhorse

Description

@spikyhorse

Since this isn't what the plugin is for this is more of an FYI.

I used an online form builder that spews "ugly" HTML

<form id="rendered-form"><div class="rendered-form formbuilder-embedded-bootstrap"><div class="formbuilder-select form-group field-select-1743677751001-0"><label for="select-1743677751001-0" class="formbuilder-select-label">Select</label><select class="form-control" name="select-1743677751001-0" id="select-1743677751001-0"><option value="option-1" selected="selected" id="select-1743677751001-0-0">Option 1</option><option value="option-2" id="select-1743677751001-0-1">Option 2</option><option value="option-3" id="select-1743677751001-0-2">Option 3</option></select></div><div class="formbuilder-text form-group field-text-1743677735445-0"><label for="text-1743677735445-0" class="formbuilder-text-label">Text Field</label><input type="text" class="form-control" name="text-1743677735445-0" id="text-1743677735445-0"></div><div class="formbuilder-text form-group field-text-1743677736856-0"><label for="text-1743677736856-0" class="formbuilder-text-label">Text Field</label><input type="text" class="form-control" name="text-1743677736856-0" id="text-1743677736856-0"></div><div class="formbuilder-text form-group field-text-1743677738290-0"><label for="text-1743677738290-0" class="formbuilder-text-label">Text Field</label><input type="text" class="form-control" name="text-1743677738290-0" id="text-1743677738290-0"></div><div class="formbuilder-text form-group field-text-1743677739580-0"><label for="text-1743677739580-0" class="formbuilder-text-label">Text Field</label><input type="text" class="form-control" name="text-1743677739580-0" id="text-1743677739580-0"></div><div class="formbuilder-text form-group field-text-1743677754583-0"><label for="text-1743677754583-0" class="formbuilder-text-label">Text Field</label><input type="text" class="form-control" name="text-1743677754583-0" id="text-1743677754583-0"></div></div></form>

I used the pretty print in the addin and it deletes some of the closing div tags - I mention this in case it is relevant for anything else in the addin

Image below of how it renders plugin version 1.7.8 and np++ version 8.7.5 for Windows 11
Image

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