How to solve the problem that the nbsp uploaded in the background using vue does not appear as a space?

problem description

nbsp, is used to distinguish the levels of departments in the data transmitted in the background;

the environmental background of the problems and what methods you have tried

I tried to replace replace with"", but I didn"t show a single space

.

related codes

/ / Please paste the code text below (do not replace the code with pictures)
html page

<label class="col-xs-3  col-md-4 control-label text-right "><span
                                    class="text-danger"> * </span>:</label>
                            <div class="col-xs-8 col-md-7 ">
                                <select v-model="formdata.user_info_organizationid" 
                                        class="form-control ">
                                    <option value=""></option>
                                    <option v-for="option in organizationlist" v-bind:value="option.value" >
                                        {{ option.text }}
                                    </option>
                                </select>
                            </div>
                        </div>

data example:




Jan.25,2022

try using v-html


this is not recommended. It belongs to the problem of style, and it is better to use margin and padding to deal with it. You unexpectedly passed a space in the background, and the service arrived home

.
Menu