01a22e61df
Allows for us to play nicely in environments such as Node that could have multiple versions of the library loaded. Also allows for implementors to provide their own behavior, provided they know what they are doing. Fixes #886
11 lines
229 B
JavaScript
11 lines
229 B
JavaScript
// Build out our basic SafeString type
|
|
function SafeString(string) {
|
|
this.string = string;
|
|
}
|
|
|
|
SafeString.prototype.toString = SafeString.prototype.toHTML = function() {
|
|
return "" + this.string;
|
|
};
|
|
|
|
export default SafeString;
|