OP-Engineering / link-preview-js

⛓ Extract web links information: title, description, images, videos, etc. [via OpenGraph], runs on mobiles and node.
MIT License
770 stars 124 forks source link

Only extract the Title in the HEAD element #154

Closed joneswah closed 1 month ago

joneswah commented 1 month ago

Without this fix all Title elements within the HTML are concatenated together. SVG elements can contain a Title element. This fix restricts the title to be the page title in the HEAD element.

ospfranco commented 1 month ago

Tests on CI are broken for some reason, but will test locally and release it afterwards, thanks a lot!