Skip to content

Added data-emoji attribute to generated img tags#26

Open
smeagol74 wants to merge 1 commit intobanyan:masterfrom
hitsoft:master
Open

Added data-emoji attribute to generated img tags#26
smeagol74 wants to merge 1 commit intobanyan:masterfrom
hitsoft:master

Conversation

@smeagol74
Copy link
Copy Markdown

So img generated for text :smilie: will looks like <img data-emoji=":smilie:">

This is useful when making rich-text-editor that should show emojis as images right in editor, but save the emojis as text. So before saving its content to file or sending as message it is possible to replace all <img> back to emoji texts using data-emoji attributes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant