Skip to content

Commit 153ce1e

Browse files
committed
Suggest routes.php instead of routing.yaml
1 parent 75855ff commit 153ce1e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/intl.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,15 @@ platforms::
424424
$transliterator->transliterate('Menus with 🥗 or 🧆');
425425
// => 'Menus with :green_salad: or :falafel:'
426426

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+
427436
.. tip::
428437

429438
Combine this emoji transliterator with the :ref:`Symfony String slugger <string-slugger-emoji>`

0 commit comments

Comments
 (0)