import re
def Base_extractImageUrlList(self, text_content=None):
"""
Extract list of image URLS used in a Text document (i.e. Web Page)
"""
if text_content is None:
text_content = self.getTextContent()
if text_content is not None:
return re.findall('src=[\"\'](.[^\"\']+)[\"\']', text_content, re.I)
return []
-
Ivan Tyagov authored
Allow pre conversion to happen on any ERP5 Web Page's content which include relative images (through <img> tags).
8ce12b78