MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / removeHTML

Function removeHTML

ESP32_AP-Flasher/src/contentmanager.cpp:1206–1221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1204}
1205
1206void removeHTML(String &text) {
1207 int len = text.length();
1208 bool insideTag = false;
1209 int j = 0;
1210 for (int i = 0; i < len; ++i) {
1211 char c = text[i];
1212 if (c == '<') {
1213 insideTag = true;
1214 } else if (c == '>') {
1215 insideTag = false;
1216 } else if (!insideTag) {
1217 text[j++] = c;
1218 }
1219 }
1220 text.remove(j);
1221}
1222
1223void stampTime(TFT_eSprite &spr) {
1224 time_t now;

Callers 1

getRssFeedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected