Skip to content

Commit

Permalink
Fix visibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
flowbe committed Mar 1, 2021
1 parent c3f524b commit e0c558e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies: [

## Usage

This extension add 2 properties to `String`.
This package adds 2 properties to `String`.

- `htmlToString`:

Expand Down
8 changes: 4 additions & 4 deletions Sources/DecodeHTML/DecodeHTML.swift
Original file line number Diff line number Diff line change
@@ -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)
}
Expand Down

0 comments on commit e0c558e

Please sign in to comment.