What are the differences between htmlspecialchars()and htmlentities(). When should I use one or the other?Explain me in poor words
phoenix254
0
Junior Poster
Recommended Answers
Jump to PostFrom the manual - htmlspecialchars:
Certain characters have special significance in HTML, and should be represented by HTML entities if they are to preserve their meanings. This function returns a string with these conversions made. If you require all input substrings that have associated named entities to be translated, …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.