File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ - (NSString *)codePatternedWithContent:(CodeFile *)codeFile isEdit:(BOOL)isEdit{
8181 if ([codeFile.file.lang isEqualToString: @" markdown" ]) {
8282 patternedStr = [self .markdown_pattern_htmlStr stringByReplacingOccurrencesOfString: @" ${webview_content}" withString: dataStr];
8383 }else {
84- patternedStr = [dataStr stringByReplacingOccurrencesOfString: @" <" withString: @" <" ];
84+ patternedStr = [dataStr stringByReplacingOccurrencesOfString: @" &" withString: @" &" ];
85+ patternedStr = [patternedStr stringByReplacingOccurrencesOfString: @" <" withString: @" <" ];
8586 patternedStr = [patternedStr stringByReplacingOccurrencesOfString: @" >" withString: @" >" ];
8687 patternedStr = [self .code_pattern_htmlStr stringByReplacingOccurrencesOfString: @" ${file_code}" withString: patternedStr];
8788 patternedStr = [patternedStr stringByReplacingOccurrencesOfString: @" ${file_lang}" withString: codeFile.file.lang];
You can’t perform that action at this time.
0 commit comments