changeset 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 e73c4e8e2d03
children 8fbf1c989f2b
files src/html.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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];
 		}