# Remove emojis from Open graph meta tags (title and description) but not url!

**URL:** <https://meta.discourse.org/t/remove-emojis-from-open-graph-meta-tags-title-and-description-but-not-url/57743>\
**Category:** Feature\
**Created:** [21. Februar 2017 um 21:04 UTC](https://meta.discourse.org/t/remove-emojis-from-open-graph-meta-tags-title-and-description-but-not-url/57743 "2017-02-21T21:04:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![alonle](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@alonle](https://meta.discourse.org/u/alonle)\
**Post date:** [21. Februar 2017 um 21:04 UTC](https://meta.discourse.org/t/remove-emojis-from-open-graph-meta-tags-title-and-description-but-not-url/57743/1 "2017-02-21T21:04:14Z")

</div>

Since the share to Facebook does not show any emojis but only show text like “smile”  
I think we need to remove it and replace it with an empty string

Unfortunately, I’m not a ruby guy, but I think we need to add code in [this file](https://github.com/discourse/discourse/blob/master/app/helpers/application_helper.rb) In function `crawlable_meta_data` and use `opts[property].gsub('/:\S*:/','')`

maybe this can also help to replace the emojis code with Unicode??

> <https://stackoverflow.com/questions/20045268/how-does-facebook-encode-emoji-in-the-json-graph-api>

Remember that we only need to change the title and description, but not the **URL**

Can you please help? 😄

---

_[View the full topic](https://meta.discourse.org/t/remove-emojis-from-open-graph-meta-tags-title-and-description-but-not-url/57743)._
