A KirbyTag to turn emojis in texts into accessible HTML, by hiding the emoji from screen readers. It should be used when the emoji is only used for a decorative purpose.
Download and copy this repository to /site/plugins/accessible-emoji
.
git submodule add https://github.com/astranchet/kirby3-accessible-emoji.git site/plugins/accessible-emoji
composer require astranchet/accessible-emoji
Make my emoji accessible! (emoji: π)
It will turn this text into the following HTML:
Make my emoji accessible! <span aria-hidden="true">π</span>
MIT