File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ - (NSString *)codePatternedWithContent:(CodeFile *)codeFile isEdit:(BOOL)isEdit{
81
81
if ([codeFile.file.lang isEqualToString: @" markdown" ]) {
82
82
patternedStr = [self .markdown_pattern_htmlStr stringByReplacingOccurrencesOfString: @" ${webview_content}" withString: dataStr];
83
83
}else {
84
- patternedStr = [dataStr stringByReplacingOccurrencesOfString: @" <" withString: @" <" ];
84
+ patternedStr = [dataStr stringByReplacingOccurrencesOfString: @" &" withString: @" &" ];
85
+ patternedStr = [patternedStr stringByReplacingOccurrencesOfString: @" <" withString: @" <" ];
85
86
patternedStr = [patternedStr stringByReplacingOccurrencesOfString: @" >" withString: @" >" ];
86
87
patternedStr = [self .code_pattern_htmlStr stringByReplacingOccurrencesOfString: @" ${file_code}" withString: patternedStr];
87
88
patternedStr = [patternedStr stringByReplacingOccurrencesOfString: @" ${file_lang}" withString: codeFile.file.lang];
You can’t perform that action at this time.
0 commit comments