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;