Thanks @Roma, I finally can reproduce the issue on the codepen.
But when I tried to paste the text you gave to the app on the local environment, the app page doesn’t dissappear, but I don’t know if it previewing the right output, the image will be given below.
And initially, I build the app on the local environment first with react-html-parser to parse the html but then when I moved the code to codepen the parser doesn’t works, so I use html-react-parser (note that the name quite similiar with the previous one) on the codepen to make the app works.
So probably the error is caused by the parser. Here is the output on local environement which use the different parser than the one on the codepen, does it showing the right output or should it displaying the span tag too?