Removed redundant PHP function in search view and added htmlspecialchars in news controller