LPS-49817 Extract text from HTML to replace special characters