Codeigniter String helper quotes_to_entities()

Codeigniter String quotes_to_entities()

Syntax:

quotes_to_entities(text);

Parameters:
Text – specifies the string to be manipulated

Return type:
string.

Description:
Changes the double quote and single quote to html special symbols

Example:

$text = "w3mentor's\" Code\"";
echo quotes_to_entities($text);

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.