Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Parser: match starting tags to ending tags in order to retrieve the content  #2

@alexprut

Description

@alexprut

In order to add fallbacks support we need to be able to match starting tags to ending tags in order to retrieve the content.

Example

<div data-sd="property">
    Content
    <div data-sd="property">
        Content
    </div>
    <meta data-sd="property" content="Content" />
</div>
First match
    Content
    <div data-sd="property">
        Content
    </div>
    <meta data-sd="property" content="Content" />
Second match
        Content
Third match
                                      Content

The problem

  • Match self-contained tags
  • Match starting tags to ending tags
  • Match nested starting tags to ending tags
  • Ordered matches, up → down matches flow

The solutions

Is there any Joomla parser library to solve that problem?

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