Convert double quotes to HTML entities: in PHP
Description
The following code shows how to convert double quotes to HTML entities:.
Example
/*from w ww . j ava 2s . c o m*/
<?php
$str = 'I love "CSS".';
echo htmlspecialchars($str, ENT_QUOTES); // Converts double and single quotes
?>
The code above generates the following result.