J
J
Jau2021-04-22 15:37:45
Node.js
Jau, 2021-04-22 15:37:45

How to replace UTF-8 character?

How to replace ♥ with "a" using str.replace?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
user_of_toster, 2021-04-22
@Jau

"♥ ♥ ♥".replace(/♥/g, 'a')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question