Skip to content

Find a string in HTML and replace it with link #24

@ahoiroman

Description

@ahoiroman

Hello,

I would like to use your class to search a html-code for specific human-readable strings (that are shown in the browser - no hidden HTML-stuff) and replace them with a link.

E.G.

  • Search for all strings like "test"
  • Replace all of them with <a href="test.html" title="test">test</a>

I did that by using the simple HTML DOM parser and it has a massive overhead. Is it possible to use your class to solve this in an elegant way?

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