mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-03 04:17:44 +01:00
Escape special XML characters for external folder id. Issue #1659
This commit is contained in:
parent
f3802488c3
commit
531c40a059
@ -177,7 +177,7 @@ extension Folder: OPMLRepresentable {
|
|||||||
|
|
||||||
let attrExternalID: String = {
|
let attrExternalID: String = {
|
||||||
if allowCustomAttributes, let externalID = externalID {
|
if allowCustomAttributes, let externalID = externalID {
|
||||||
return " nnw_externalID=\"\(externalID)\""
|
return " nnw_externalID=\"\(externalID.escapingSpecialXMLCharacters)\""
|
||||||
} else {
|
} else {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user