From e0c558e42dd86061855bfcfa288e520ffdf2301d Mon Sep 17 00:00:00 2001 From: Florentin Bekier Date: Mon, 1 Mar 2021 21:45:40 +0100 Subject: [PATCH] Fix visibility issue --- README.md | 2 +- Sources/DecodeHTML/DecodeHTML.swift | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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) }