Handling apostrophes when generating HTML with PHP

前端 未结 5 779
慢半拍i
慢半拍i 2020-12-22 02:13

I am generating radio buttons based on an XML config values. Sometimes they have apostrophes in the text. When manipulating this data in PHP, I seem to lose everything after

5条回答
  •  滥情空心
    2020-12-22 02:54

    Simplest way would be just to use double quotes like so:

    
    

    It's pretty much the reason for them.

提交回复
热议问题