Run »
"; echo htmlspecialchars($str, ENT_QUOTES); // Converts double and single quotes echo "
"; echo htmlspecialchars($str, ENT_NOQUOTES); // Does not convert any quotes ?>
Jane & 'Tarzan'
Jane & 'Tarzan'
Jane & 'Tarzan'