Skip to content
Remove Emoji ๐Ÿ˜ˆ๐Ÿˆฒ๐Ÿ˜ฑโ‰๏ธ ( 2017 version for Elixir 1.4ใ€1.5+ )
Elixir
Branch: master
Clone or download
Fetching latest commitโ€ฆ
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
test
.gitignore
.travis.yml
LICENSE.txt
README.md
mix.exs
mix.lock

README.md

Remove Emoji

Build Status

It can remove any of the emoji. ๐Ÿ’ป๐Ÿ”ฅ๐Ÿคฏ๐Ÿšซ ๆ‚จๅฏไปฅ้€้Ž่ฉฒๅฅ—ไปถ็งป้™คไปคไบบๅ›ฐๆ“พ็š„ Emoji ็ฌฆ่™Ÿใ€‚

original_string = "๐Ÿ‘ฆ๐Ÿ‘ฆ๐Ÿป๐Ÿ‡ฏ๐Ÿ‡ต๐Ÿ‡ฐ๐Ÿ‡ณ๐Ÿ‡ฐ๐Ÿ‡ท๐Ÿ‘ฆ๐Ÿผ๐Ÿ‘ฆ๐Ÿฝ๐Ÿ‘ฆ๐Ÿพ๐Ÿ˜„๐Ÿ˜…๐Ÿ˜†๐Ÿ˜‡๐Ÿ˜ˆ๐Ÿ˜‰๐Ÿ˜Š"
sanitized_string = original_string |> RemoveEmoji.sanitize()

# true, :ok
IO.puts "" === sanitized_string

Installation / ๅฎ‰่ฃๆ–นๅผ

่ซ‹ๅœจๆ‚จ็š„ Elixir ๅฐˆๆกˆ่ฃก็š„ mix.exs ๅŠ ๅ…ฅไปฅไธ‹ๆŒ‡ไปค๏ผŒ็„ถๅพŒๅŸท่กŒ mix deps.get ๆ›ดๆ–ฐไพ่ณดๅณๅฏใ€‚

def deps do
  [
    {:remove_emoji, "~> 1.0.0"}
  ]
end

Demo ( Before / After )

emoji_effect

LICENSE

MIT LICENSE ( See LICENSE.txt )

You canโ€™t perform that action at this time.