Special characters in DC strings for the social element

Was just trying out the social share button in a layout, and it looks like DC strings are outputting strangely when there are special characters in the DC string.

Here’s a quick way to repro:

  1. Set up a blog post with an “&” in the title (e.g. “Introducing Bob & Jim”)
  2. In a blog post layout, add a social element
  3. Set that element to “Share”
  4. Set to share via email
  5. Add {{dc:post:title}} to the Title field

image

Observed:
When you visit the front end and click the email link on that blog post, the title will be “Introducing Bob” (it drops everything after the &). I thought I saw it with some other special characters too.

Thanks @devinelston, adding to our issue tracker.

1 Like