Skip to content

Commit 547436a

Browse files
New dashboard - fix line (#125)
* new dashboard page for the tv * quick edit * add clock and weeks to timer * format clock time * format date time plurial * add error handeling * Remove breakline from RSS response text
1 parent 101635e commit 547436a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/NewsComponent.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ async function feed() {
9898
}
9999
}
100100
101-
const xmlDoc = parser.parseFromString(responseText, 'text/xml');
101+
const xmlDoc = parser.parseFromString(
102+
responseText.replaceAll('\r', ' ').replaceAll('\n', ' '),
103+
'text/xml'
104+
);
105+
102106
const items = xmlDoc.getElementsByTagName('item');
103107
newsContent.innerHTML = ''; // using innerHTML because of em tags
104108

0 commit comments

Comments
 (0)