top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+1 vote
393 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
...