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

Method fixEncryptionPaste

gui/nbrowserwindow.cpp:1095–1104  ·  view source on GitHub ↗

This basically removes all the table tags and returns just the contents. This is called by JavaScript to fix encryption pastes.

Source from the content-addressed store, hash-verified

1093// This basically removes all the table tags and returns just the contents.
1094// This is called by JavaScript to fix encryption pastes.
1095QString NBrowserWindow::fixEncryptionPaste(QString data) {
1096 data = data.replace("<tbody>", "");
1097 data = data.replace("</tbody>", "");
1098 data = data.replace("<tr>", "");
1099 data = data.replace("</tr>", "");
1100 data = data.replace("<td>", "");
1101 data = data.replace("</td>", "<br>");
1102 data = data.replace("<br><br>", "<br>");
1103 return QString("<tbody><tr><td>")+data+QString("</td></tr></tbody>");
1104}
1105
1106
1107

Callers

nothing calls this directly

Calls 1

QStringClass · 0.50

Tested by

no test coverage detected