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をテキストボックスに出力しようとしていますが、テキストボックスを壊さないようにしています。
テキストボックスにスパン、h1s、h2sなどのHTMLを入れることができるようにしたいのですが、これを試みるたびにテキストボックスが壊れます。
私は試しました:stripslashes()、htmlをデコードして再エンコードします。これを行う簡単な関数があると確信していますが、見つけられないようです。
どんな助けでも大歓迎です。