New substitute function for HTML entities