mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-29 00:01:49 +00:00
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
[
|
|
{
|
|
"input": "<html>hello<br/>world<br/></html>",
|
|
"max_len": 25,
|
|
"expected": "<html>hello<br/>world..."
|
|
},
|
|
{
|
|
"input": "<html>using <><br/></html>",
|
|
"max_len": 25,
|
|
"expected": "<html>using <><br/>..."
|
|
},
|
|
{
|
|
"input": "test <not br/>tag<br />test <not br/>tag<br />",
|
|
"max_len": 25,
|
|
"expected": "test <not br/>tag..."
|
|
},
|
|
{
|
|
"input": "<>< ><tag\n/>>hello world< br \n />",
|
|
"max_len": 25,
|
|
"expected": "<>< ><tag\n/>>hello ..."
|
|
},
|
|
{
|
|
"input": "<head><title>ignore head</title><not head>xyz</not head></head><h1><body></h1>",
|
|
"max_len": 25,
|
|
"expected": "<head><title>ignore he..."
|
|
},
|
|
{
|
|
"input": "<p>what is ♥?</p><p>ßĂΒγ don't hurt me.</p>",
|
|
"max_len": 25,
|
|
"expected": "<p>what is ♥..."
|
|
},
|
|
{
|
|
"input": "<!-- <> < < < -->the actual<!--> text",
|
|
"max_len": 25,
|
|
"expected": "<!-- <> < < < -->the a..."
|
|
},
|
|
{
|
|
"input": " < p > hello < / p > < p > world < / p > !!! < br > ",
|
|
"max_len": 25,
|
|
"expected": " < p > hello ..."
|
|
},
|
|
{
|
|
"input": " <p>please unsubscribe <a href=#>here</a>.</p> ",
|
|
"max_len": 25,
|
|
"expected": " <p>please unsubscribe..."
|
|
}
|
|
]
|