Awesome
Remove Emoji
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 )
LICENSE
MIT LICENSE ( See LICENSE.txt )