Closed teddybradford closed 3 years ago
It's actually a cheerio
thing
> require('cheerio').load('<meta property="og:description" content=""It was like a shade had been pulled and then lifted."">')('meta').attr('content')
''
unfortunately that markup looks very malformed and can't be handled
Prerequisites
package.json
.Subject of the issue
I ran into a site with a malformed
og:description
that looks like this:The quotes are unescaped. Is there a way to handle such cases?
Expected behavior
Fix the malformed HTML and return a description.
Actual behavior
No description is returned.