Requirement:
I need to preserve white space in a response i receive from backend, use the response as input for select dropdown in my UI and need to send the user selection to backend again.
Problem:
The white-space css property didn't worked for me. Though replacing spaces with   worked, i can't use that solution, Since the input i receive is large and replacing all spaces with   requires lot of computation. There were other framework issues too.
Question:
Is there any other solution to preserve white spaces in an HTML select option other than javascript way of using  ?