packages/lib/htmlUtils.js
// Returns the **encoded** URLs, so to be useful they should be decoded again before use.
Returns the **encoded** URLs, so to be useful they should be decoded again before use.
Returns the ** encoded ** URLs so to be useful they should be decoded again before use .
extractImageUrls(html) {
		if (!html) return [];
		const output = [];
		let matches;
		while ((matches = imageRegex.exec(html))) {
			output.push(matches[2]);
		}
		return output.filter(url => !!url);
	}
extractImageUrls ( html ) { if ( ! html ) return [ ] ; const output = [ ] ; let matches ; while ( ( matches = imageRegex . exec ( html ) ) ) { output . push ( matches [ 2 ] ) ; } return output . filter ( url => ! ! url ) ; }
Returns the **encoded** URLs, so to be useful they should be decoded again before use.
Returns the ** encoded ** URLs so to be useful they should be decoded again before use .