Escape HTML to PHP or Use Echo? Which is better?

前端 未结 13 728
无人共我
无人共我 2020-12-01 04:34

In terms of performance , what would be better. Using PHP to echo all the HTML output so I can pepper it with the various bits of working code and variables or escape HTML t

13条回答
  •  伪装坚强ぢ
    2020-12-01 04:47

    Code as if the next programmer taking over the project is a serial killer. In other words, use the second option you mentionned.

提交回复
热议问题