pass escape markup into formatResult