comparison src/gtkimhtml.c @ 7715:9f6dc7b4fc57

[gaim-migrate @ 8360] I didn't do this earlier, because I figured people would still want to add their own HTML tags using CVS, but I strongly doubt anyone will be hit with the overwhelming desire to manually change the font size in an IM until that gets implemented. I'm escaping HTML now. This will only happen with protocols that support HTML, other protocols will receive just the text in the box. When the toolbar gets widgetized, it will become desensitive when the current account does not support HTML. Also, because it's been asked of me, your default outgoing font will be set in the wysiwyg entry widget, and ctrl-up will show the correct formatting. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 03 Dec 2003 04:29:26 +0000
parents 3d9d3d21e600
children 911f03121652
comparison
equal deleted inserted replaced
7714:3d9d3d21e600 7715:9f6dc7b4fc57
2226 sspan = NULL; 2226 sspan = NULL;
2227 gtk_text_buffer_get_end_iter(imhtml->text_buffer, &siter); 2227 gtk_text_buffer_get_end_iter(imhtml->text_buffer, &siter);
2228 } 2228 }
2229 2229
2230 } 2230 }
2231 2231
2232 if (c == '<')
2233 str = g_string_append(str, "&lt;");
2234 else if (c == '>')
2235 str = g_string_append(str, "&gt;");
2236 else if (c == '&')
2237 str = g_string_append(str, "&amp;");
2238 else if (c == '"')
2239 str = g_string_append(str, "&quot;");
2232 str = g_string_append_unichar(str, c); 2240 str = g_string_append_unichar(str, c);
2233 } 2241 }
2234 gtk_text_iter_forward_char(&iter); 2242 gtk_text_iter_forward_char(&iter);
2235 } 2243 }
2236 return g_string_free(str, FALSE); 2244 return g_string_free(str, FALSE);