Refactored and commented strip_tags utility