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.
たとえば、値が「CT.< S >」の文字列がありますが、HTML では、エコー時にタグとして扱われます。HTML がタグとして扱われないように、代わりに "CT. \< S\>" (たとえば) をエコーするために使用できる関数はありますか?
htmlspecialcharsそしてhtmlentities両方がこれを行います。
htmlspecialchars
htmlentities