trying to split eMdash (long dash) but DTM converts my dash to short dash | Community
Skip to main content
Level 3
February 24, 2020
Solved

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

  • February 24, 2020
  • 1 reply
  • 2848 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by salimj

Perhaps try using the HTML entity code for the EM Dash

 

&#8212;

 

 

1 reply

salimj
salimjAccepted solution
Level 3
June 11, 2021

Perhaps try using the HTML entity code for the EM Dash

 

&#8212;