Home > Blockchain >  NodeJS: remove html from text but leave the alt of images
NodeJS: remove html from text but leave the alt of images

Time:07-26

I have HTML text as string, with emoji as image tag like this:

const htmlText = '<p>test emoji <span title="Smile" ><img title="Smile" alt="           
  • Related