I am creating a RSS feed file for my application in which I want to remove HTML tags, which is done by strip_tags. But strip_tags is not removing HTML special code chars:
& ©
etc.
Please tell me any function which I can use to remove these special code chars from my string.
Either decode them using
html_entity_decodeor remove them usingpreg_replace:(From here)
EDIT: Alternative according to Jacco’s comment