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

Add option to discard links #21

Closed
rif opened this issue Apr 9, 2015 · 3 comments
Closed

Add option to discard links #21

rif opened this issue Apr 9, 2015 · 3 comments

Comments

@rif
Copy link

rif commented Apr 9, 2015

I am using your lib to extract text from html pages to be used as search data. The links, especially the urls are not useful. Can you add an option to discard them?

Thanks a lot!

@soundasleep
Copy link
Owner

Can you not sanitise your input with just replacing e.g.

$html = preg_replace('/href="[^"]+"/im', "", $html);

@rif
Copy link
Author

rif commented Dec 18, 2015

I solved it using some other lib that was a better fit for my particul needs. Thank you.

soundasleep added a commit that referenced this issue Feb 14, 2019
The resulting output is even _more_ like how it would be rendered, and
less like Markdown generation.

Resolves #21 and #14
@soundasleep
Copy link
Owner

This has been implemented as part of PR #65, thank you for the suggestion and your patience!

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

No branches or pull requests

2 participants