Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how remove a node/element ? #29

Open
kingofnull opened this issue Feb 22, 2018 · 4 comments
Open

how remove a node/element ? #29

kingofnull opened this issue Feb 22, 2018 · 4 comments

Comments

@kingofnull
Copy link

Many html page contain script or other sort of unpleasant elements that need to be delete before fetching text. So a way to search and delete element is needed. so please if there is any way to delete a node describe how , and if not please plan to implement or guide me to add this option.

Thanks

@Mecanik
Copy link

Mecanik commented Feb 22, 2018

Why not use preg_replace ? That's what I have done...

@kingofnull
Copy link
Author

you can do that but there is no way to set node html!
there are complex condition than you need pars html and get nodes and then remove them.

@duzun
Copy link
Owner

duzun commented Feb 23, 2018

Is #7 what you are looking for?

@kingofnull
Copy link
Author

Tanks duzun but I need node html and it do nothing on that. Is there any way to update node html?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants