How use & nbsp ; on editor type select HELP !
How use & nbsp ; on editor type select HELP !
EmilioHayes
Posts: 5Questions: 2Answers: 0
using on a select html .. it give you a hard space
but on the editor this doesnt work im trying:
"options":[{label:"USA", value:0},{label:"& nbsp ;California",value:1}
Or others ways to do this ?
(I USE SPACE ON & nbsp ; BECAUSE HTML REPLACE THIS WITH THE SPACE)
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
HELP !
it return this on editor:
Options:
USA
  ;California
Instead :
USA
Californa
The
label
doesn't get rendered as HTML - as far as I am aware an HTMLoption
can't display other HTML inside it. You'd need to use Select2 or similar to display HTML inside the options.Can you decode the entities on the server-side?
Allan
I just use "\xa0" instead " " works perfectly