feat: offer a non-Mews web page as a simplified view or in the browser

This commit is contained in:
randogoth 2026-10-12 11:13:34 +03:00
parent cea66fbb42
commit 00e42c925c
24 changed files with 863 additions and 152 deletions

View file

@ -159,12 +159,6 @@ void main() {
expect(submit.label, 'Sign guestbook');
});
test('mewsPlainText recovers text from broken markup', () {
const broken = '<html><head><title>Half</title></head><body><p>Visible &amp; intact.</p>';
final text = mewsPlainText(broken);
expect(text, contains('Visible & intact.'));
});
test('pretty-printed markup leaves no phantom blank content', () {
final source = '''
<?xml version="1.0" encoding="UTF-8"?>