inserted html escaping of functions.