This was their suiteanswer solution which i was looking into at first..but it only matches the 1st & so its wrong either way since ?html is what you should use.
m
mattdahse
06/04/2019, 6:26 PM
fwiw I would use
name.replace(/&/g, '&')
up until a half hour ago.
c
creece
06/04/2019, 6:29 PM
right it'll work fine for a single &
creece
06/04/2019, 6:30 PM
nm im thinking the match ignore me
creece
06/04/2019, 6:30 PM
i did try it last night and it was only catching the 1st one maybe my logic was just wrong and Im wrong here
creece
06/04/2019, 6:31 PM
name = 'Chris & Reece & Matt & Dahse';
undefined
name.replace(/&/g, '&')
"Chris & Reece & Matt & Dahse"