Escape double quotes of HTML attributes output by PHP

前端 未结 6 1899
春和景丽
春和景丽 2021-01-06 08:36

Often when writing PHP I\'ll have it output some HTML like this -

echo \"\".$link_text.\"\";
         


        
6条回答
提交回复
热议问题