# Double escaped single quotes in suggested posts

**URL:** https://meta.discourse.org/t/double-escaped-single-quotes-in-suggested-posts/24271
**Category:** Bug
**Created:** [January 21, 2015, 4:07pm UTC](https://meta.discourse.org/t/double-escaped-single-quotes-in-suggested-posts/24271 "2015-01-21T16:07:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![qrohlf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qrohlf/32/105364_2.png) [@qrohlf](https://meta.discourse.org/u/qrohlf)
#### Post date: [January 21, 2015, 4:07pm UTC](https://meta.discourse.org/t/double-escaped-single-quotes-in-suggested-posts/24271/1 "2015-01-21T16:07:23Z")

</div>

Suggested post summaries appear with double escaped single quotes. See screenshot for example:

Never mind, don’t see screenshot as I am not allowed to upload images. But this is a real bug, happens on a fresh discourse install as of yesterday.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [January 21, 2015, 4:08pm UTC](https://meta.discourse.org/t/double-escaped-single-quotes-in-suggested-posts/24271/2 "2015-01-21T16:08:31Z")

</div>

Can you provide repro steps? Such as, how to create the topic that is listed incorrectly in Suggested Topics?

---

<div class="post-metadata">

### Author: ![qrohlf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qrohlf/32/105364_2.png) [@qrohlf](https://meta.discourse.org/u/qrohlf)
#### Post date: [January 21, 2015, 5:38pm UTC](https://meta.discourse.org/t/double-escaped-single-quotes-in-suggested-posts/24271/3 "2015-01-21T17:38:02Z")

</div>

Sure, sorry about the vague bug report, was on my phone.

Here is an [example](http://forum.lchack.org/t/advanced-lab-projects/13/2) of the problem page.

The “Hey Folks - Welcome” intro topic contains a few single quotes in the top paragraph (“It’s”, “that’s”) which are double-escaped when the intro topic appears in the suggested topics for another topic.

The issue only occurs on an iPhone, since the suggested topic summary does not appear on the desktop stylesheet.

Here is a [screenshot](https://i.imgur.com/6vTIOPh.png) of the behavior.

---

<div class="post-metadata">

### Author: ![edgibbs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/edgibbs/32/115414_2.png) [@edgibbs](https://meta.discourse.org/u/edgibbs)
#### Post date: [February 23, 2015, 1:05am UTC](https://meta.discourse.org/t/double-escaped-single-quotes-in-suggested-posts/24271/4 "2015-02-23T01:05:47Z")

</div>

I just submitted a pull request to fix this issue:

[https://github.com/discourse/discourse/pull/3224](https://github.com/discourse/discourse/pull/3224)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [February 23, 2015, 9:10am UTC](https://meta.discourse.org/t/double-escaped-single-quotes-in-suggested-posts/24271/5 "2015-02-23T09:10:55Z")

</div>


