Escape HTML in raw source of Cards

This commit is contained in:
Francis Lachapelle
2016-06-08 16:26:46 -04:00
parent 64ce3c9c22
commit 1db09de2a8
3 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -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;
}