mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
fix: newline_to_br filter should output <br /> instead of <br/>, fixes #320
This commit is contained in:
@@ -28,7 +28,7 @@ export function escapeOnce (str: string) {
|
||||
}
|
||||
|
||||
export function newlineToBr (v: string) {
|
||||
return v.replace(/\n/g, '<br/>')
|
||||
return v.replace(/\n/g, '<br />\n')
|
||||
}
|
||||
|
||||
export function stripHtml (v: string) {
|
||||
|
||||
Reference in New Issue
Block a user