feat: offer a non-Mews web page as a simplified view or in the browser
This commit is contained in:
parent
cea66fbb42
commit
00e42c925c
24 changed files with 863 additions and 152 deletions
|
|
@ -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 & 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"?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue