So on my node.js backend I have an object with a content property which contains an HTML string. Now in there there is an img element where I would like to replace the attribute src, which is now a base64 string, to a path to my uploads folder. How can I change this src attribute?
this is req.body.content. I would like to replace the base64 src of the img element to something I choose
{ content: '<p><br></p><p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAmVBMV.. }