[evolution/gnome-3-20] Bug 769338 - Pasting < > & as a quotation pastes their html entities
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-20] Bug 769338 - Pasting < > & as a quotation pastes their html entities
- Date: Mon, 1 Aug 2016 09:16:25 +0000 (UTC)
commit 30409414141a3c27e545b1482e7e0dc92d1255c2
Author: Tomas Popela <tpopela redhat com>
Date: Mon Aug 1 11:15:49 2016 +0200
Bug 769338 - Pasting < > & as a quotation pastes their html entities
Don't try to use innerHTML as innerText..
e-util/e-html-editor-view.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 1b1174d..4cb9573 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -7728,7 +7728,7 @@ e_html_editor_view_insert_quoted_text (EHTMLEditorView *view,
{
EHTMLEditorSelection *selection;
EHTMLEditorViewHistoryEvent *ev = NULL;
- gchar *escaped_text, *inner_html;
+ gchar *inner_html;
WebKitDOMDocument *document;
WebKitDOMElement *blockquote, *element, *selection_start;
WebKitDOMNode *node;
@@ -7746,12 +7746,6 @@ e_html_editor_view_insert_quoted_text (EHTMLEditorView *view,
element = webkit_dom_document_create_element (document, "textarea", NULL);
webkit_dom_html_element_set_inner_html (
WEBKIT_DOM_HTML_ELEMENT (element), text, NULL);
- escaped_text = webkit_dom_html_element_get_inner_html (
- WEBKIT_DOM_HTML_ELEMENT (element));
-
- webkit_dom_html_element_set_inner_text (
- WEBKIT_DOM_HTML_ELEMENT (element), escaped_text, NULL);
-
inner_html = webkit_dom_html_element_get_inner_html (
WEBKIT_DOM_HTML_ELEMENT (element));
@@ -7849,7 +7843,6 @@ e_html_editor_view_insert_quoted_text (EHTMLEditorView *view,
e_html_editor_view_set_changed (view, TRUE);
- g_free (escaped_text);
g_free (inner_html);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]