This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var JStoUTF8Converter = { | |
encode: function(input) { | |
var output = ''; | |
for (var i = 0; i < input.length; i++) { | |
var j = '\b\t\n\v\f\r"\'\\'.indexOf(input.charAt(i)); | |
if (j != -1) { | |
output += '\\' + 'btnvfr"\'\\'.substr(j, 1); | |
} else if (input.substr(i, 2) == '</') { | |
output += '<\\/'; | |
i++; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react'); | |
module.exports = React.createClass({ | |
render: function() { | |
return ( | |
<div className="post"> | |
<h2 className="postName"> | |
ssdfsdf | |
{this.props.title} |
NewerOlder