generated from autonomic-cooperative/astro-payload-template
fix: Alt attr. string
This commit is contained in:
@ -34,6 +34,7 @@ export const getContentArray = (content: any) => {
|
|||||||
src: imgTag.match(/src="(.*?)"/)![1],
|
src: imgTag.match(/src="(.*?)"/)![1],
|
||||||
width: +imgTag.match(/width="(.*?)"/)![1],
|
width: +imgTag.match(/width="(.*?)"/)![1],
|
||||||
height: +imgTag.match(/height="(.*?)"/)![1],
|
height: +imgTag.match(/height="(.*?)"/)![1],
|
||||||
|
alt: imgTag.match(/alt="(.*?)"/)![1],
|
||||||
};
|
};
|
||||||
htmlImageArray.push(remainingHtml, imgObject);
|
htmlImageArray.push(remainingHtml, imgObject);
|
||||||
lastIndex = imgEndIndex;
|
lastIndex = imgEndIndex;
|
||||||
|
Reference in New Issue
Block a user