Wrong parsing of <title>
See original GitHub issueThank you very much for this great library, seems to work well, I’m currently testing it.
However:
unfurl.js
will parse the title of https://hash.ai
as “Facebook”.
Reason:
This is the correct title and it appears first:

but later on there is more stuff with <title> and what unfurl parses is the last one:

This works correctly:
https://github.com/wzbg/read-title/blob/master/index.js
would it be possible to do it this way in your library?
Can it be done easily / soon ? If not, if you could please explain if you see this as an issue or not … I’ll think more about it and possibly fork + implement a fix myself… if there are any guidelines for me to adhere to for the fix to have a better chance of being accepted upstream, also let me know… I’m not yet versed in typescript so the code might not be the best…
I hope it will be possible to do something in some way, so… thank you for the feedback / thoughts on this. david
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
tnx! it seems to work for this case. Didn’t notice other issues for now.
Should be fixed now. It’s not a very thorough fix so might need looking at again if other edge cases come up around this.