diff --git a/src/formattedJSON.js b/src/formattedJSON.js index bdda14e..9c01845 100644 --- a/src/formattedJSON.js +++ b/src/formattedJSON.js @@ -236,12 +236,13 @@ if( collapsible ) { class_names.push( "collapsible" ); } if( collapsed ) { class_names.push( "closed" ); } + var ins = obj.match(/^https?:\/\//) ? this._append( this._html( ''), document.createTextNode( obj )) : document.createTextNode( obj ) return this._append( this._html( '
' ), this._html( collapsible ? '' : '', '"', - this._append( this._html( '' ), document.createTextNode( obj ) ), + this._append( this._html( '' ), ins ), '"', ',' )