I received data from the backend as a string in Arabic and in HTML format.
Like this:
"<div> صباح الخير، مرحبا بكم </div>"
So I used .replace(/<.*?>/g, ''); to extract text from the HTML string but the remains and I used the same function to replace this expression with an empty string and I received nothing as result