top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

What is the difference between htmlentities() and htmlspecialchars()?

+1 vote
95 views
What is the difference between htmlentities() and htmlspecialchars()?
posted Aug 27, 2014 by Vrije Mani Upadhyay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

In PHP htmlentities() convert all applicable characters to HTML entities, while htmlspecialchars() convert special character to HTML entities. Htmlspecilachars() convert only single quote, double quote, <, > and ampersand when htmlentities() convert all the types of characters.

answer Sep 26, 2014 by Devyani
Similar Questions
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...