diff --git a/src/renderer/components/data-settings/data-settings.js b/src/renderer/components/data-settings/data-settings.js
index 8578162763700..ceac3eea40af6 100644
--- a/src/renderer/components/data-settings/data-settings.js
+++ b/src/renderer/components/data-settings/data-settings.js
@@ -620,20 +620,21 @@ export default Vue.extend({
}
let opmlData = ''
- const endingOpmlString = ''
-
- let count = 0
this.profileList[0].subscriptions.forEach((channel) => {
- const channelOpmlString = ``
- count++
+ const escapedName = channel.name
+ .replace(/&/g, '&')
+ .replace(//g, '>')
+ .replace(/"/g, '"')
+ .replace(/'/g, ''')
+
+ const channelOpmlString = ``
opmlData += channelOpmlString
-
- if (count === this.profileList[0].subscriptions.length) {
- opmlData += endingOpmlString
- }
})
+ opmlData += '