// // OPMLExporter.swift // NetNewsWire // // Created by Brent Simmons on 12/22/17. // Copyright © 2017 Ranchero Software. All rights reserved. // import Foundation import Account struct OPMLExporter { static func OPMLString(with account: Account, title: String) -> String { let escapedTitle = title.escapingSpecialXMLCharacters let openingText = """ \(escapedTitle) """ let middleText = account.OPMLString(indentLevel: 0) let closingText = """ """ let opml = openingText + middleText + closingText return opml } }