# Loop through the keys of the 'meta_array' array, search for all occurences of the key in the HTML doc, and replace them with the corresponding value..
for arr_key in "${!meta_array[@]}";do
meta_array["$arr_key"]="${meta_array["$arr_key"]/\//\\/}"# Escape all forward slashes in the value
meta_array["$arr_key"]="${meta_array["$arr_key"]//\//\\/}"# Escape all forward slashes in the value
sed -i "s/[\$][\$]$arr_key[\$][\$]/${meta_array[$arr_key]}/g""$1"