Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guanting112/elixir_remove_emoji
Remove Emoji ๐๐ฒ๐ฑโ๏ธ ( for Elixir 1.4+ ~ 1.10.x )
https://github.com/guanting112/elixir_remove_emoji
Last synced: about 1 month ago
JSON representation
Remove Emoji ๐๐ฒ๐ฑโ๏ธ ( for Elixir 1.4+ ~ 1.10.x )
- Host: GitHub
- URL: https://github.com/guanting112/elixir_remove_emoji
- Owner: guanting112
- License: mit
- Created: 2017-12-18T17:29:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-07T05:54:04.000Z (9 months ago)
- Last Synced: 2024-09-16T08:51:26.562Z (3 months ago)
- Language: Elixir
- Homepage: https://hex.pm/packages/remove_emoji/
- Size: 32.2 KB
- Stars: 9
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Emoji text sanitizer in Elixir. It can remove any emoji symbol. (Text and Numbers)
- fucking-awesome-elixir - remove_emoji - Emoji text sanitizer in Elixir. It can remove any emoji symbol. (Text and Numbers)
- awesome-elixir - remove_emoji - Emoji text sanitizer in Elixir. It can remove any emoji symbol. (Text and Numbers)
README
Remove Emoji
=================================================[![Build Status](https://travis-ci.org/guanting112/elixir_remove_emoji.svg?branch=master)](https://travis-ci.org/guanting112/elixir_remove_emoji)
It can remove any of the emoji. ๐ป๐ฅ๐คฏ๐ซ
ๆจๅฏไปฅ้้่ฉฒๅฅไปถ็งป้คไปคไบบๅฐๆพ็ Emoji ็ฌฆ่ใ```elixir
original_string = "๐ฆ๐ฆ๐ป๐ฏ๐ต๐ฐ๐ณ๐ฐ๐ท๐ฆ๐ผ๐ฆ๐ฝ๐ฆ๐พ๐๐ ๐๐๐๐๐"
sanitized_string = original_string |> RemoveEmoji.sanitize()# true, :ok
IO.puts "" === sanitized_string```
Installation / ๅฎ่ฃๆนๅผ
------่ซๅจๆจ็ Elixir ๅฐๆก่ฃก็ mix.exs ๅ ๅ ฅไปฅไธๆไปค๏ผ็ถๅพๅท่ก mix deps.get ๆดๆฐไพ่ณดๅณๅฏใ
```elixir
def deps do
[
{:remove_emoji, "~> 1.0.0"}
]
end
```Demo ( Before / After )
------![emoji_effect](https://i.imgur.com/OzcQYWL.jpg)
LICENSE
--------MIT LICENSE ( See LICENSE.txt )