Instance Property

removingPercentEncoding

Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters.

Declaration

var removingPercentEncoding: String? { get }

Return Value

A new string with the percent-encoded sequences removed, or nil if the receiver contains an invalid percent-encoding sequence.

See Also

Working with URLs

func addingPercentEncoding(withAllowedCharacters: CharacterSet)

Returns a new string made from the receiver by replacing all characters not in the specified set with percent-encoded characters.