li:before{ content: “■”; } How to Encode this Special Character as a Bullit in an Email Stationery?

前端 未结 6 1206
小鲜肉
小鲜肉 2021-01-30 04:00

After proudly coloring my liststyle bullet without any image url or span tags, via:

ul{ list-style: none; padding:0;  margin:0;  }
li{ padding-left: 1em; text-in         


        
6条回答
  •  北海茫月
    2021-01-30 04:39

    You are facing a double-encoding issue.

    and are absolutely equivalent to each other. Both refer to the Unicode character 'BULLET' (U+2022) and can exist side-by-side in HTML source code.

    However, if that source-code is HTML-encoded again at some point, it will contain and •. The former is rendered unchanged, the latter will come out as "•" on the screen.

    This is correct behavior under these circumstances. You need to find the point where the superfluous second HTML-encoding occurs and get rid of it.

提交回复
热议问题