[extractor/common] Allow angle brackets in attributes in _og_regexes (#7215)
This commit is contained in:
parent
49941c4e4f
commit
448ef1f31c
2 changed files with 5 additions and 1 deletions
|
@ -645,7 +645,7 @@ class InfoExtractor(object):
|
|||
# Helper functions for extracting OpenGraph info
|
||||
@staticmethod
|
||||
def _og_regexes(prop):
|
||||
content_re = r'content=(?:"([^>]+?)"|\'([^>]+?)\'|\s*([^\s"\'=<>`]+?))'
|
||||
content_re = r'content=(?:"([^"]+?)"|\'([^\']+?)\'|\s*([^\s"\'=<>`]+?))'
|
||||
property_re = (r'(?:name|property)=(?:\'og:%(prop)s\'|"og:%(prop)s"|\s*og:%(prop)s\b)'
|
||||
% {'prop': re.escape(prop)})
|
||||
template = r'<meta[^>]+?%s[^>]+?%s'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue