I'm trying to populate a html field using php but if there is a " on the variable it just closes the value paramenter. How can I prevent this from happening?
<input type="text" name="txtnome" class="form-control" value="<?php echo "$nome" ?>" required>