File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
packages/@ember/-internals/glimmer/lib/utils Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,10 @@ import type { SafeString as GlimmerSafeString } from '@glimmer/runtime';
32
32
htmlSafe(someTrustedorSanitizedString);
33
33
```
34
34
35
- @public
36
- @since 4.12.0
35
+ @for @ember /template
37
36
@class SafeString
37
+ @since 4.12.0
38
+ @public
38
39
*/
39
40
export class SafeString implements GlimmerSafeString {
40
41
private __string : string ;
@@ -48,7 +49,7 @@ export class SafeString implements GlimmerSafeString {
48
49
49
50
@public
50
51
@method toString
51
- @returns The string marked as trusted
52
+ @returns { String } The string marked as trusted
52
53
*/
53
54
toString ( ) : string {
54
55
return `${ this . __string } ` ;
@@ -59,7 +60,7 @@ export class SafeString implements GlimmerSafeString {
59
60
60
61
@public
61
62
@method toHTML
62
- @returns string
63
+ @returns { String } the trusted string, without any escaping applied
63
64
*/
64
65
toHTML ( ) : string {
65
66
return this . toString ( ) ;
Original file line number Diff line number Diff line change @@ -509,6 +509,7 @@ module.exports = {
509
509
'toArray' ,
510
510
'toggleProperty' ,
511
511
'toString' ,
512
+ 'toHTML' ,
512
513
'tracked' ,
513
514
'transitionTo' ,
514
515
'transitionToRoute' ,
You can’t perform that action at this time.
0 commit comments