fixed & symbol saving

pull/38/head
parent ace3342c37
commit 93c5aff55e

@ -415,8 +415,10 @@ void yon_save_window_loaded_config_init(template_saving_window *window, struct l
else status=1; else status=1;
if (strstr(current->data,">")) current->data = yon_char_replace(current->data,">","<"); if (strstr(current->data,">")) current->data = yon_char_replace(current->data,">","<");
if (strstr(current->data,"<")) current->data = yon_char_replace(current->data,"<","&gt;"); if (strstr(current->data,"<")) current->data = yon_char_replace(current->data,"<","&gt;");
if (strstr(current->data,">")) current->data = yon_char_replace(current->data,">","&amp;");
if (strstr(dict->data,">")) dict->data = yon_char_replace(dict->data,">","&lt;"); if (strstr(dict->data,">")) dict->data = yon_char_replace(dict->data,">","&lt;");
if (strstr(dict->data,"<")) dict->data = yon_char_replace(dict->data,"<","&gt;"); if (strstr(dict->data,"<")) dict->data = yon_char_replace(dict->data,"<","&gt;");
if (strstr(dict->data,"<")) dict->data = yon_char_replace(dict->data,"<","&amp;");
char *compare_string = yon_char_unite("<s>",(char*)dict->data,"</s>\n",(char*)current->data,NULL); char *compare_string = yon_char_unite("<s>",(char*)dict->data,"</s>\n",(char*)current->data,NULL);
gtk_list_store_append(window->list,&iter); gtk_list_store_append(window->list,&iter);
gtk_list_store_set(window->list,&iter,0,status,1,current->key,2,(char*)dict->data,3,(char*)current->data,4,compare_string,6,1,7,yon_config_get_section_for_key(current->key),-1); gtk_list_store_set(window->list,&iter,0,status,1,current->key,2,(char*)dict->data,3,(char*)current->data,4,compare_string,6,1,7,yon_config_get_section_for_key(current->key),-1);

Loading…
Cancel
Save