Fixed linebreaks not showing in Feed
This commit is contained in:
2
index.js
2
index.js
@@ -175,7 +175,7 @@ function newTAF(taf) {
|
|||||||
|
|
||||||
let item = {
|
let item = {
|
||||||
title: title,
|
title: title,
|
||||||
description: taf,
|
description: taf.replace(/(?:\r\n|\r|\n)/g, '<br>'),
|
||||||
url: API_URL + TAF_SERVICE + "?ids=" + ((tafSplit[1] == "AMD") ? tafSplit[2] : tafSplit[1]),
|
url: API_URL + TAF_SERVICE + "?ids=" + ((tafSplit[1] == "AMD") ? tafSplit[2] : tafSplit[1]),
|
||||||
guid: id,
|
guid: id,
|
||||||
date: eventDate
|
date: eventDate
|
||||||
|
|||||||
Reference in New Issue
Block a user