| 1204 | } |
| 1205 | |
| 1206 | void 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 | |
| 1223 | void stampTime(TFT_eSprite &spr) { |
| 1224 | time_t now; |