mirror of
https://github.com/twisterarmy/twister-react.git
synced 2025-02-04 11:04:19 +00:00
html entity fixes
This commit is contained in:
parent
ceeae4d8b3
commit
30c7b918e1
@ -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 = "";
|
||||
|
||||
}
|
||||
|
@ -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 = "";
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user