Skip to content
This repository was archived by the owner on Dec 13, 2017. It is now read-only.

Commit 97c5693

Browse files
committed
Adds an escape for invisible paragraph separators.
1 parent 8c8a175 commit 97c5693

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Classes/WPEditorField.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,11 @@ - (NSString *)addSlashes:(NSString *)html
246246
html = [html stringByReplacingOccurrencesOfString:@"\r" withString:@"\\r"];
247247
html = [html stringByReplacingOccurrencesOfString:@"\n" withString:@"\\n"];
248248

249-
// Invisible line separator character.
250-
// Fixes https://github.com/wordpress-mobile/WordPress-iOS/issues/5496
249+
// Invisible line separator and paragraph separator characters.
250+
// Fixes https://github.com/wordpress-mobile/WordPress-iOS/issues/5496 and
251+
// https://github.com/wordpress-mobile/WordPress-Editor-iOS/issues/830
251252
html = [html stringByReplacingOccurrencesOfString:@"\u2028" withString:@"\\u2028"];
253+
html = [html stringByReplacingOccurrencesOfString:@"\u2029" withString:@"\\u2029"];
252254

253255
return html;
254256
}

0 commit comments

Comments
 (0)