I use single quotes for my strings.
example:
$title = 'rvdavid\'s demo';
$outputline = '<Input Type="text" name="cdtitle" size=35 maxlength=80 value="' .$title. '">';
Go here to learn more about strings in PHP.
If you are set in your ways and really don't feel like changing your string literals, you could fix your problem using htmlspecialchars() with the ENT_QUOTES flag. However, it does transform the input data.
So you should put some thoughts into it if you are planning on using the data for other things besides displaying on html.
example:
$title = "rvdavid's demo";
$outputline = "<Input Type='text' name='cdtitle' size=35 maxlength=80 value='" . htmlspecialchars($title, ENT_QUOTES) . "'>";
HTH 🙂
regards,