Home

Awesome

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 )