HTMLKit
HTMLKit copied to clipboard
An Objective-C framework for your everyday HTML needs.
```swift let element:HTMLElement = HTMLElement(tagName: "div") element.innerHTML = "LineBreaks" print("\(element.textContent)") ``` output: ``` LineBreaks ``` desired: ``` Line\nBreaks ``` At leas this is how `NSAttributedString`'s `initWithHTML` works. Anything I need...
Hi, I have an issue with HTML-Kit. When I parse an HTML content which has few self-closing custom tags, it is not detected properly. Here is the sample code, NSArray...
frame #8386: 0x00007fff36033e0f CoreFoundation`__RELEASE_OBJECTS_IN_THE_ARRAY__ + 122 frame #8387: 0x00007fff35f32e3e CoreFoundation`-[__NSArrayM dealloc] + 289 frame #8388: 0x00007fff35fd592d CoreFoundation`-[__NSOrderedSetM dealloc] + 157 frame #8389: 0x00007fff6c50dd16 libobjc.A.dylib`object_cxxDestructFromClass(objc_object*, objc_class*) + 83 frame #8390: 0x00007fff6c5076c3...
When I parse an XHTML, I discovered that the tags in the are not being closed: ```html page ``` the `innerHTML` returns: ```html page ``` and for example if I...
This looks like a powerful library to navigate around HTML nodes, however what would be the simplest method of obtaining cleaned up 'plain text' from HTML input? I'd like it...
Fixes issues with serializing U+00A0 (Non-breaking space) character to entity The specification for the unicode for U+00A0 is incorrect in both methods that attempt the string replacement