How to replace a node

How do I replace a node that has a specific content with a Text node

@sunithaprabhu

Would you kindly share your sample HTML with us. We will test the scenario in our environment and address it accordingly.