HUE-2190 [search] Truncate function doesn't work anymore

Fixed triple escaping for functions