We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75855ff commit 153ce1eCopy full SHA for 153ce1e
components/intl.rst
@@ -424,6 +424,15 @@ platforms::
424
$transliterator->transliterate('Menus with 🥗 or 🧆');
425
// => 'Menus with :green_salad: or :falafel:'
426
427
+Furthermore the ``EmojiTransliterator`` provides a special ``strip`` locale
428
+that removes all the emojis from a string::
429
+
430
+ use Symfony\Component\Intl\Transliterator\EmojiTransliterator;
431
432
+ $transliterator = EmojiTransliterator::create('strip');
433
+ $transliterator->transliterate('🎉Hey!🥳 🎁Happy Birthday!🎁');
434
+ // => 'Hey! Happy Birthday!'
435
436
.. tip::
437
438
Combine this emoji transliterator with the :ref:`Symfony String slugger <string-slugger-emoji>`
0 commit comments