MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / removeInvalidUnicode

Method removeInvalidUnicode

html/enmlformatter.cpp:997–1001  ·  view source on GitHub ↗

Remove any invalid unicode characters to allow it to sync properly.

Source from the content-addressed store, hash-verified

995
996// Remove any invalid unicode characters to allow it to sync properly.
997QByteArray EnmlFormatter::removeInvalidUnicode(QByteArray content) {
998 QString c(content);
999 c = c.remove(QChar( 0x1b ), Qt::CaseInsensitive);
1000 return c.toUtf8();
1001}
1002
1003
1004

Callers 1

rebuildNoteEnmlMethod · 0.95

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected