diff --git a/README.md b/README.md index 5a75ecb..26ecd13 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ dependencies: [ ## Usage -This extension add 2 properties to `String`. +This package adds 2 properties to `String`. - `htmlToString`: diff --git a/Sources/DecodeHTML/DecodeHTML.swift b/Sources/DecodeHTML/DecodeHTML.swift index d46f9e0..ce95564 100644 --- a/Sources/DecodeHTML/DecodeHTML.swift +++ b/Sources/DecodeHTML/DecodeHTML.swift @@ -1,18 +1,18 @@ // // DecodeHTML.swift // -// Created by TheFlow_ on 01/03/2015. -// Copyright (c) 2015 TheFlow_. All rights reserved. +// Created by Florentin on 01/03/2015. +// Copyright (c) 2015 Florentin. All rights reserved. // import Foundation extension String { - var htmlToString: String? { + public var htmlToString: String? { return htmlToAttributedString?.string } - var htmlToAttributedString: NSAttributedString? { + public var htmlToAttributedString: NSAttributedString? { if let data = data(using: .utf8) { return try? NSAttributedString(data: data, options: [.documentType: NSAttributedString.DocumentType.html, .characterEncoding: Encoding.utf8], documentAttributes: nil) }