trying to split eMdash (long dash) but DTM converts my dash to short dash | Adobe Higher Education
Skip to main content
Level 3
February 24, 2020
해결됨

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

  • February 24, 2020
  • 1 답변
  • 2847 조회

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.

이 주제는 답변이 닫혔습니다.
최고의 답변: salimj

Perhaps try using the HTML entity code for the EM Dash

 

&#8212;

 

 

1 답변

salimj
salimj답변
Level 3
June 11, 2021

Perhaps try using the HTML entity code for the EM Dash

 

&#8212;