Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Affirm 1
Level 2
edwardb44196902
Level 2

Likes

3 likes

Total Posts

20 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
Validate 1
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Affirm 1
Level 2
edwardb44196902
Level 2

Likes

3 likes

Total Posts

20 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
Validate 1
Boost 3
Boost 1
Applaud 5
View profile
edwardb44196902
Level 2

24-02-2020

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Affirm 5
Level 3
salimj
Level 3

Likes

16 likes

Total Posts

28 posts

Correct Reply

6 solutions
Top badges earned
Affirm 5
Give Back 3
Contributor
Applaud 5
Boost 10
View profile

Avatar
Affirm 5
Level 3
salimj
Level 3

Likes

16 likes

Total Posts

28 posts

Correct Reply

6 solutions
Top badges earned
Affirm 5
Give Back 3
Contributor
Applaud 5
Boost 10
View profile
salimj
Level 3

11-06-2021

Perhaps try using the HTML entity code for the EM Dash

 

&#8212;