Converting all applicable characters to HTML entities
Tutorial Description - In this code sample we will converting all applicable characters to HTML entities using htmlentities(). Using 'htmlentities' all characters which have HTML character entity equivalents are translated into these entities. .