3 ms·
Also good luck reliably even finding the title in all the horrible kinds of html floating around out there.
by GFK_of_xmaspast 11y ago
Also good luck reliably even finding the title in all the horrible kinds of html floating around out there.
- oneeyedpigeon 11y ago/html/head/title/text() should work for the vast majority of pages out there. Those that it doesn't work for, never mind - you don't lose anything wrt the current system by not being able to prefill.
- krapp 11y agoYou could also look for meta tags and social media (facebook, twitter, etc) tags, and probably build a decent profile for most sites[0]. It can be done fairly reliably, and would work well for any site that actually cares about its social media presence, but the end result is still no better for low quality titles and linkbait. To guarantee quality, HN would have to either send all submissions through a mod queue or have an interstitial preview page to let the user add or edit metadata before submission. That, functionally, is just a more complication version of looking at the article and pasting in the title. [0]shameless plug of my own work: https://github.com/kennethrapp/embedbug https://github.com/kennethrapp/embedbug