Difference between and  

前端 未结 4 1579
面向向阳花
面向向阳花 2020-12-24 08:16

Can any one explain me difference between and   ?

I have html data stored in database in binary form and space in that can be either

4条回答
  •  感动是毒
    2020-12-24 08:49

    is the classic space, the one you get when you hit your spacebar, represented by his HTML entity equivalent.

      and   represents the non-breaking space, often used to prevent collapse of multiple spaces togethers by the browser :

    " " => " " (collapsed into only one space)

    "    " => "    " (not collapsed)

    If you are parsing a string containing both classic and non-breaking spaces, you can safely replace one by the other.

提交回复
热议问题