Print less-than and greater-than symbols in PHP

后端 未结 7 771
南方客
南方客 2020-12-01 16:01

I am have troubles trying to print out < > symbols in HTML using PHP.

I am appending a string \"\" to a v

7条回答
  •  天涯浪人
    2020-12-01 16:50

    > = >
    < = <

    Or you can use htmlspecialchars.

    $output .= htmlspecialchars("  ");
    

提交回复
热议问题