Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
HTML コードを生成する関数を作成する必要があります。これにより、コピー用にクライアントにhtmlが出力されます。
これどうやってするの?
サンプル:
$htmlCode = "<div class='redRectangle'></div>";
これecho $htmlCodeは を表示divしますが、コードを表示する必要があります。
echo $htmlCode
div
誰でも私を助けることができますか?
機能を使用してくださいhtmlentities。
htmlentities
echo htmlentities($htmlCode);