diff src/html.c @ 4473:7b0f6537da75

[gaim-migrate @ 4748] Paul Miller writes: "Small patch for the strip_html() function (in html.c) to replace &quot; with a quote. " committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 30 Jan 2003 18:08:04 +0000
parents 5fb47ec9bfe4
children fdc4ac6d1db1
line wrap: on
line diff
--- a/src/html.c	Thu Jan 30 15:15:15 2003 +0000
+++ b/src/html.c	Thu Jan 30 18:08:04 2003 +0000
@@ -68,6 +68,11 @@
 			visible = 1;
 			continue;
 		}
+		if (text2[i] == '&' && strncasecmp(text2+i,"&quot;",6) == 0) {
+		    text2[j++] = '\"';
+		    i = i+5;
+		    continue;
+		}
 		if (visible) {
 			text2[j++] = text2[i];
 		}