# Search does not seem to work for tags with emoji

**URL:** <https://meta.discourse.org/t/search-does-not-seem-to-work-for-tags-with-emoji/141458>\
**Category:** Bug\
**Created:** [February 13, 2020, 1:36am UTC](https://meta.discourse.org/t/search-does-not-seem-to-work-for-tags-with-emoji/141458 "2020-02-13T01:36:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [February 13, 2020, 10:35am UTC](https://meta.discourse.org/t/search-does-not-seem-to-work-for-tags-with-emoji/141458/5 "2020-02-13T10:35:22Z")

</div>

I don’t think we do, might be wrong though @neil probably knows better  
AFAIK we just have this `clean_tag` function:

> <https://github.com/discourse/discourse/blob/main/lib/discourse_tagging.rb#L379>

Which is kinda copied in client side here:

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/select-kit/mixins/tags.js.es6#L80](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/select-kit/mixins/tags.js.es6#L80)

Also this would probably be useful at other places as we for example generate this client side: [https://github.com/discourse/discourse/blob/master/app/assets/javascripts/pretty-text/emoji.js.es6#L24](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/pretty-text/emoji.js.es6#L24)

---

_[View the full topic](https://meta.discourse.org/t/search-does-not-seem-to-work-for-tags-with-emoji/141458)._
