From f44e8f52f9633e96b3a1267ef1a1bfbb6e238699 Mon Sep 17 00:00:00 2001 From: Julian Steinwachs Date: Fri, 29 Jan 2016 20:44:49 +0100 Subject: [PATCH] better html handling in postComposer --- build/app-bundle.js | 4 +++- jsx/common/PostContentHelper.js | 4 +++- tests/PostContentTest.js | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build/app-bundle.js b/build/app-bundle.js index d4e81a7..2f7ef98 100644 --- a/build/app-bundle.js +++ b/build/app-bundle.js @@ -1240,11 +1240,13 @@ module.exports = { }*/ } - output.push({type:"text",raw:this.reverseHtmlEntities(msg)}); + output.push({type:"text",raw:msg}); msg = ""; } + //console.log(output) + return output; } diff --git a/jsx/common/PostContentHelper.js b/jsx/common/PostContentHelper.js index 035d275..60495dc 100644 --- a/jsx/common/PostContentHelper.js +++ b/jsx/common/PostContentHelper.js @@ -141,11 +141,13 @@ module.exports = { }*/ } - output.push({type:"text",raw:this.reverseHtmlEntities(msg)}); + output.push({type:"text",raw:msg}); msg = ""; } + //console.log(output) + return output; } diff --git a/tests/PostContentTest.js b/tests/PostContentTest.js index c62239a..db72363 100644 --- a/tests/PostContentTest.js +++ b/tests/PostContentTest.js @@ -1,4 +1,4 @@ var PostContentHelper = require("../build-buffer/common/PostContentHelper.js"); -console.log(PostContentHelper.parseContent("asd http://")); \ No newline at end of file +console.log(PostContentHelper.parseContent("asd http://