Index: trunk/extensions/ApiSandbox/ext.apiSandbox.js |
— | — | @@ -363,15 +363,15 @@ |
364 | 364 | */ |
365 | 365 | setHelp: function ( $container ) { |
366 | 366 | var linkHtml = '', |
367 | | - descTxt = smartEscape( this.info.description ); |
| 367 | + descHtml = smartEscape( this.info.description ); |
368 | 368 | if ( this.info.helpurls && this.info.helpurls[0] ) { |
369 | | - descTxt = descTxt.replace( /^([^\r\n\.]*)/, '$1' ) + ' '; |
370 | | - linkHtml = mw.html.element( 'a', { |
| 369 | + descHtml = descHtml.replace( /^([^\r\n\.]*)/, '$1' ) + ' '; |
| 370 | + linkHtml = mw.msg( 'parentheses', mw.html.element( 'a', { |
371 | 371 | 'target': '_blank', |
372 | 372 | 'href': this.info.helpurls[0] |
373 | | - }, mw.msg( 'apisb-docs-more' ) ); |
| 373 | + }, mw.msg( 'apisb-docs-more' ) ) ); |
374 | 374 | } |
375 | | - $container.text( descTxt ).append( mw.msg( 'parentheses', linkHtml ) ); |
| 375 | + $container.html( descHtml ).append( linkHtml ); |
376 | 376 | }, |
377 | 377 | |
378 | 378 | input: function ( param, name ) { |