Underscore (_) in b/w survey emojis

nameisnani
Mega Sage

Hi Team ,

 

There is underscore (_) symbol is coming in b/w the emojis .  This is my code where i need to update , so that we can't see underscore .

 

NOTE -  Gap should there b/w emojis .

 

    template.print('<a href="' + gs.getProperty('glide.servlet.uri') + '/esc?id=take_survey&instance_id=' + surv.sys_id + '"><img src="verysat.png" width="50" height="50"/>&nbsp</a>');

    template.print('<a href="' + gs.getProperty('glide.servlet.uri') + '/esc?id=take_survey&instance_id=' + surv.sys_id + '"><img src="satisfied_1.png" width="50" height="50"/>&nbsp</a>');

    template.print('<a href="' + gs.getProperty('glide.servlet.uri') + '/esc?id=take_survey&instance_id=' + surv.sys_id + '"><img src="neutral_1.png" width="50" height="50"/>&nbsp</a>');

    template.print('<a href="' + gs.getProperty('glide.servlet.uri') + '/esc?id=take_survey&instance_id=' + surv.sys_id + '"><img src="dissat_1.png" width="50" height="50"/>&nbsp</a>');

    template.print('<a href="' + gs.getProperty('glide.servlet.uri') + '/esc?id=take_survey&instance_id=' + surv.sys_id + '"><img src="verydisat.png" width="50" height="50"/>&nbsp</a>');

SunilKumarPadh_0-1690427498630.png

 

 

Email is triggering like this 

SunilKumarPadh_1-1690427580764.png

 

 

 

Thanks In advance

 

@Anil Lande 

4 REPLIES 4

Tony Chatfield1
Kilo Patron

Hi, this looks to be an html issue and I would suspect it's confused by the inclusion of the &nbsp within the href attribute - you can reproduce it here W3Schools Tryit Editor

 

How about adding the spaces via separate template.print()

this works in the w3schools test editor.

Edit:
or in the existing template.print but outside of the href tags

Hi @Tony Chatfield1 

 

I have tried as per your link . 

 

could you please update in my code , so that i can follow the same

 

 

   template.print('<a href="' + gs.getProperty('glide.servlet.uri') + '/esc?id=take_survey&instance_id=' + surv.sys_id + '"><img src="verysat.png" width="50" height="50"/></a>');

 

I would simply try something like this

 template.print('<a href="' + gs.getProperty('glide.servlet.uri') + '/esc?id=take_survey&instance_id=' + surv.sys_id + '"><img src="verysat.png" width="50" height="50"/></a>');
 template.print('&nspb');

and if it doesn't work try encapsulating &nspb in <p>&nspb</p> or something similar

Hi @Tony Chatfield1 

 

it is coming like this 

 

SunilKumarPadh_0-1690449355813.png