mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-18 13:13:31 +00:00
Escape HTML in raw source of Cards
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
|
||||
#import <Foundation/NSArray.h>
|
||||
|
||||
#import <NGExtensions/NSString+misc.h>
|
||||
|
||||
#import <NGObjWeb/WOContext.h>
|
||||
#import <NGObjWeb/WORequest.h>
|
||||
#import <NGObjWeb/WOResponse.h>
|
||||
@@ -140,7 +142,7 @@
|
||||
[content appendFormat: @"%@", [[self clientObject] contentAsString]];
|
||||
[response setHeader: @"text/plain; charset=utf-8"
|
||||
forKey: @"content-type"];
|
||||
[response appendContentString: content];
|
||||
[response appendContentString: [content stringByEscapingHTMLString]];
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@
|
||||
</md-button>
|
||||
</md-card-actions>
|
||||
<md-card-content>
|
||||
<pre>{{editor.rawSource}}</pre>
|
||||
<pre ng-bind-html="editor.rawSource"><!-- raw --></pre>
|
||||
</md-card-content>
|
||||
</md-card>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user