how to remove   and
using javascript or jQuery?

前端 未结 8 1121
心在旅途
心在旅途 2020-12-06 05:38

I have written the following code. But it is removing only   not

var docDesc = docDescription.replace(/(&nb         


        
8条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 05:48

    Try this

    var text = docDescription.replace(/(?: |
    )/g,'');

提交回复
热议问题