diff --git a/src/filters/html.ts b/src/filters/html.ts
index 36b57b2a4..73be53cb6 100644
--- a/src/filters/html.ts
+++ b/src/filters/html.ts
@@ -32,5 +32,5 @@ export function newline_to_br (v: string) {
}
export function strip_html (v: string) {
- return stringify(v).replace(/|||<.*?>/g, '')
+ return stringify(v).replace(/Ulysses?" | strip_html }}',
'Ulysses?')
})
+ it('should strip multiline scripts', function () {
+ expect(liquid.parseAndRenderSync('{{ "" | strip_html }}')).to.equal('')
+ })
+ it('should not strip non-matched text" | strip_html }}')).to.equal('text')
+ })
it('should strip until empty', function () {
return test('{{"
< p >
p >" | strip_html }}', '')
})