16 lines
331 B
Swift
16 lines
331 B
Swift
//
|
|
// String+URL.swift
|
|
// RxExample
|
|
//
|
|
// Created by Krunoslav Zaher on 12/28/15.
|
|
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension String {
|
|
var URLEscaped: String {
|
|
return self.stringByAddingPercentEncodingWithAllowedCharacters(.URLHostAllowedCharacterSet()) ?? ""
|
|
}
|
|
}
|