PHP - Echoing multiple nested quotes of HTML

后端 未结 4 1288
隐瞒了意图╮
隐瞒了意图╮ 2021-01-26 18:13

I\'m attempting to echo the following line of HTML through PHP

echo \"

        
4条回答
  •  时光取名叫无心
    2021-01-26 18:59

    Change it to the following

    echo "

    ".$formattedDate." @ $time

    ";

    escaping the attribute double quotes you can have a normalized html

提交回复
热议问题