Improve my code - function to sanitize input fields
i created this function to sanitize the input fields on my site, but i need it (the function) to allow the input of some html tags. how can i improve the function to allow this?
![](https://whatco.me/media/cache/resolve/entry_thumb/62/12/6212f5f6ad9d4a949855810ada94f37cf649714e06f3a071842fee7dfbbedb28.png)
i created this function to sanitize the input fields on my site, but i need it (the function) to allow the input of some html tags. how can i improve the function to allow this?