j.jaffeux
(Joffrey Jaffeux)
5
I don’t think we do, might be wrong though @neil probably knows better
AFAIK we just have this clean_tag function:
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
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
2 Likes