duzun / hQuery.php

An extremely fast web scraper that parses megabytes of invalid HTML in a blink of an eye. PHP5.3+, no dependencies.
https://duzun.me/playground/hquery
MIT License
361 stars 74 forks source link

Replace #18

Closed MyZik closed 7 years ago

MyZik commented 7 years ago

Hi! How can I:

  1. Replace tag? For ex: News replace to My Site
  2. Find all HTML code from to and delete them?
duzun commented 7 years ago
  1. hQuery is not meant for manipulating contents of an HTML document, but rather to extract data.
  2. I do not fully understand your question, but I guess it is also related to editing the contents of the document.