I took these sentences from the PHP manual:
\'this is a simple string\', \'Arnold once said: \"I\\\'ll be back\"\', \'You deleted C:\\\\*.*?\', \'You deleted
Try this code. It is working as expected.
You can specify allowable_tags in strip_tags. Refer strip_tags for further understanding Here is DEMO