From 818843e44aa9ce07305ccfa9a3b06a70ad515f1c Mon Sep 17 00:00:00 2001 From: Jobe Dylbas Date: Fri, 2 Oct 2020 12:56:07 -0300 Subject: [PATCH] Update README.md Add string parsing from legacy documentation. --- README.md | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/README.md b/README.md index a4f89bcb..2e1fd2ba 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,103 @@ Each of them accepts a callback to generate an image source or an options object Here is a walkthrough of all parsing possibilities: +#### string parsing + +Given a generic string, replaces all emoji with an `` tag. + +While this can be used to inject emoji via image tags in `innerHTML`, please note that this method does not sanitize the string or prevent malicious code from being executed. As an example, if the text contains a `