1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

HTML Rubyに絵文字を追加する

Posted at

HTMLとRubyに😀の様な絵文字を入れる方法をご紹介いたします。

絵文字の表示にはunicordを使います。

絵文字の検索はこちらで行いました。
https://lets-emoji.com/emojilist/

HTML

HTMLはで囲っている部分をそのまま貼り付けるだけです!
d2d340cbb605e7c2faeea96f0781a7f8.png

😀

Ruby

Rubyには画像の下線部分を使います。
48f06f0d5d61a375bfe444cf5d27d630.png

下線部分を\u{}で囲むことで表示できる様になります。

\u{1F600}

最後に

Line botを作った際にRubyへの絵文字挿入を行いました。
是非ご活用ください。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?