Why is “®” being rendered as “®” without the bounding semicolon

前端 未结 8 431
孤街浪徒
孤街浪徒 2020-11-30 06:14

I\'ve been running into a problem that was revealed through our Google adwords-driven marketing campaign. One of the standard parameters used is \"region\". When a user se

8条回答
  •  攒了一身酷
    2020-11-30 06:47

    It seems to me that what you have received from google is not an actual URL but a variable which refers to a url (query-string). So, thats why it's being parsed as registration mark when rendered.

    I would say, you owe to url-encode it and decode it whenever processing it. Like any other variable containing special entities.

提交回复
热议问题