WordPress File wp-includes/formatting.php

get_date_from_gmt()

Given a date in UTC or GMT timezone, returns that date in the timezone of the site.

htmlentities2()

Converts entities, while preserving already-encoded entities.