From 30c7b918e15a1d1c1b062696da99806e44ded8d4 Mon Sep 17 00:00:00 2001 From: Julian Steinwachs Date: Sun, 16 Aug 2015 11:31:54 +0200 Subject: [PATCH] html entity fixes --- build/app-bundle.js | 6 ++++-- jsx/common/PostContent.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build/app-bundle.js b/build/app-bundle.js index d936441..57d2c93 100755 --- a/build/app-bundle.js +++ b/build/app-bundle.js @@ -565,6 +565,8 @@ module.exports = Post = React.createClass({displayName: "Post", }, parseContent: function( msg ) { + //return [{type:"text",raw:msg}]; + var output = []; var tmp; @@ -578,7 +580,7 @@ module.exports = Post = React.createClass({displayName: "Post", var reEmail = new RegExp(strEmailRegexp); var reSplitCounter = new RegExp(strSplitCounterR); - msg = this.escapeHtmlEntities(msg); + //msg = this.escapeHtmlEntities(msg); while( msg != undefined && msg.length ) { @@ -654,7 +656,7 @@ module.exports = Post = React.createClass({displayName: "Post", }*/ } - output.push({type:"text",raw:msg}); + output.push({type:"text",raw:this.reverseHtmlEntities(msg)}); msg = ""; } diff --git a/jsx/common/PostContent.js b/jsx/common/PostContent.js index 8b08788..1a61737 100644 --- a/jsx/common/PostContent.js +++ b/jsx/common/PostContent.js @@ -48,6 +48,8 @@ module.exports = Post = React.createClass({ }, parseContent: function( msg ) { + //return [{type:"text",raw:msg}]; + var output = []; var tmp; @@ -61,7 +63,7 @@ module.exports = Post = React.createClass({ var reEmail = new RegExp(strEmailRegexp); var reSplitCounter = new RegExp(strSplitCounterR); - msg = this.escapeHtmlEntities(msg); + //msg = this.escapeHtmlEntities(msg); while( msg != undefined && msg.length ) { @@ -137,7 +139,7 @@ module.exports = Post = React.createClass({ }*/ } - output.push({type:"text",raw:msg}); + output.push({type:"text",raw:this.reverseHtmlEntities(msg)}); msg = ""; }