Page MenuHomePhabricator

[tg bot] Clean strings that could contain special characters before adding to telegram html msg
ClosedPublic

Authored by bytesofman on Mar 11 2023, 18:59.

Details

Summary

T2972

Depends on D13286

Add function prepareStringForTelegramHTML and unit tests. Apply to strings that could contain '<', '>', or '&' characters. Add test where these strings do contain such characters.

Test Plan

npm test
npm run msgs

Diff Detail

Repository
rABC Bitcoin ABC
Branch
telegram-bot-mega-branch
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22369
Build 44364: Build Diff
Build 44363: arc lint + arc unit

Event Timeline

emack requested changes to this revision.Mar 12 2023, 07:23
emack added a subscriber: emack.

Needs a rebase since you updated mocks in part 4 D13282
The subsequent diffs will also need to be rebased

image.png (276×721 px, 47 KB)

This revision now requires changes to proceed.Mar 12 2023, 07:23
This revision is now accepted and ready to land.Mar 12 2023, 21:08