why does str_replace replaces my character with a semicolon?

前端 未结 1 1211
臣服心动
臣服心动 2021-01-26 01:29

I\'m new to PHP (so no bullying please) and I\'m trying to trim a variable to remove quotation marks. For some reason, my quotation marks are replaced by semicolons, anybody kno

相关标签:
1条回答
  • 2021-01-26 01:39

    Your text is not "Veronica Mars". It's probably this:

    "Veronica Mars"
    

    If you strip &#x22, only the ; remains.

    What you see in the browser screen is the result of rendering some HTML code.

    0 讨论(0)
提交回复
热议问题