Browse Source

better html handling in postComposer

master
Julian Steinwachs 9 years ago
parent
commit
f44e8f52f9
  1. 4
      build/app-bundle.js
  2. 4
      jsx/common/PostContentHelper.js
  3. 2
      tests/PostContentTest.js

4
build/app-bundle.js

@ -1240,11 +1240,13 @@ module.exports = { @@ -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;
}

4
jsx/common/PostContentHelper.js

@ -141,11 +141,13 @@ module.exports = { @@ -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;
}

2
tests/PostContentTest.js

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
var PostContentHelper = require("../build-buffer/common/PostContentHelper.js");
console.log(PostContentHelper.parseContent("asd http://"));
console.log(PostContentHelper.parseContent("asd http:// <u"));
Loading…
Cancel
Save