Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

trying to split eMdash (long dash) but DTM converts my dash to short dash

Avatar

Level 4

var dates = document.querySelector('#txDates').textContent.split(' — ');

 

trying to split the long dash that I have on my content page but whenever i save the rule in DTM, it converts the long dash to short dash. I can't use &eMdash; because it displays like the following:

 

<span>Monday, Mar 16, 2020</span> — <span>Wednesday, Mar 18, 2020</span>

 

any help is greatly appreciated.

1 Accepted Solution

Avatar

Correct answer by
Level 4

Perhaps try using the HTML entity code for the EM Dash

 

&#8212;

 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

Perhaps try using the HTML entity code for the EM Dash

 

&#8212;