Replaced safeUserInput in template