<?php
$text = "This is a string with 'single quotes' and " . '"double quotes"
in it.';
echo $text."\n";
echo str_replace('"',"'",$text)."\n";
echo htmlentities($text,ENT_QUOTES);
?>
This is a string with 'single quotes' and "double quotes"
in it.
This is a string with 'single quotes' and 'double quotes'
in it.
This is a string with 'single quotes' and "double quotes"
in it.
Output for 4.3.0 - 4.3.1
This is a string with 'single quotes' and "double quotes"
in it.
This is a string with 'single quotes' and 'double quotes'
in it.
Process exited with code 139.