i had the following code to change a displayed ampersand to a plain one for saving in text database:
then i had the following code to change the ampersand to w3 validation friendly one for display after retrieving record:
both worked fine. but now i'm having problem with double quotes. if someone enters double quotation marks in a text field, the record is saved with the quotation mark. but if the record is modified, the form interprets the quotation mark as the end of the field value and wipes out the record. i think i solved this problem before but have accidentally lost my fix. there must be a simple way to encode everything properly.
Code:
$tmp =~ s/&/&/g; # 01/22/2017 w3 validation for AT&Tthen i had the following code to change the ampersand to w3 validation friendly one for display after retrieving record:
Code:
$array[$i] =~ s/&/&/g;