Skip to content

<li> tags without surrounding <ul> or <ol> #525

Closed
@Rodeoclash

Description

@Rodeoclash

I'm trying to automatically clean up some malformed HTML content, example:

<br>
<li>Bachelor of Arts</li>
<li>Bachelor of Biomedical Science</li>
<li>Bachelor of Commerce</li>
<li>Bachelor of Commerce Specialist</li>
<li>Bachelor of Computer Science</li>
<li>Bachelor of Education (Honours)</li>
<li>Bachelor of Engineering (Honours)</li>
<li>Bachelor of Global Studies</li>
<li>Bachelor of Information Technology</li>
<li>Bachelor of Laws (Honours)</li>
<li>Bachelor of Music.</li>
<br>

The <li> tags are not correctly enclosed in a ordered / unordered list. My assumption is that tidy-html5 would have caught this. I've been through the documentation a few times, am I missing a switch somewhere or am I using the tool in an incorrect way :(

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions