L
L
lightalex2015-11-12 23:18:42
JavaScript
lightalex, 2015-11-12 23:18:42

How to decode js string?

Hello!
There is a select from which we pull out the text of the selected field:
var text=$('select :selected').html()
Let's say the text The Yandex&VK
following comes to the variable Yandex&VK
How to fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mark Doe, 2015-11-12
@lightalex

And you use not .html(), but .text(), and everything will be fine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question