[evolution-ews] Template for striping HTML tags from body of the Task
- From: Pavel Ocheretny <pocheretny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Template for striping HTML tags from body of the Task
- Date: Mon, 4 Jul 2011 11:52:40 +0000 (UTC)
commit 41cd1d1886a012e824454d2795cf47652f7ca8bd
Author: Pavel Ocheretny <pocheretny src gnome org>
Date: Mon Jul 4 14:54:09 2011 +0300
Template for striping HTML tags from body of the Task
src/server/e-ews-item.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/server/e-ews-item.c b/src/server/e-ews-item.c
index 4a195d8..5e9ae5f 100644
--- a/src/server/e-ews-item.c
+++ b/src/server/e-ews-item.c
@@ -737,6 +737,12 @@ parse_contact_field (EEwsItem *item, const gchar *name, ESoapParameter *subparam
}
}
+static gchar *
+strip_html_tags (const gchar *html_text)
+{
+ return g_strdup (html_text);
+}
+
static void
parse_task_field (EEwsItem *item, const gchar *name, ESoapParameter *subparam)
{
@@ -758,7 +764,9 @@ parse_task_field (EEwsItem *item, const gchar *name, ESoapParameter *subparam)
} else if (!g_ascii_strcasecmp (name, "Sensitivity")) {
priv->task_fields->sensitivity = e_soap_parameter_get_string_value (subparam);
} else if (!g_ascii_strcasecmp (name, "Body")) {
- priv->task_fields->body = e_soap_parameter_get_string_value (subparam);
+ value = e_soap_parameter_get_string_value (subparam);
+ priv->task_fields->body = strip_html_tags (value);
+ g_free (value);
} else if (!g_ascii_strcasecmp (name, "Owner")) {
priv->task_fields->owner = e_soap_parameter_get_string_value (subparam);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]