Skip to content

Parse fragments #16

Description

@zabojad

How to parse a fragment and insert it in an existing document ?

What I'm trying to achieve is to parse fragments of HTML and insert them in a given document.

For example, I'm trying to parse from string and insert this:

<div>
<span>blablabla</span>
</div>

in a document parsed from this :

<!DOCTYPE html>
<html>
<head>
    <style type="text/css">
        body > div {
            color: blue;
        }
    </style>
</head>
<body>
    <div>
        <div>Insert right after:</div>
    </div>
</body>
</html>

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