Comments (3)
With the lib version 1.3.2 with the same HTML I got this output:
"TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST"
from swiftsoup.
Hi, sorry for my delay.
Current master version do not have this problem and the output is:
"TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST"
if you use cocoapod, you will need to link using pod 'SwiftSoup', :git => 'https://github.com/scinfu/SwiftSoup.git'.
I can't push a this version in cocoa pods because its compatible only with Swift 3.2 and 4, I'm waiting for new xCode 9 .
from swiftsoup.
Hi, if the output is:
"TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST"
it is still wrong. by the HTML the output should be
" TEST\r\nTEST\r\nTEST\r\n\r\nTEST\r\nTEST\r\nTEST\r\n\r\n\r\nTEST\r\nTEST\r\nTEST\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nTEST"
but I'm getting
"TEST\r\n TEST\r\n TEST\r\n \r\n\r\n\r\n TEST\r\n TEST\r\n TEST\r\n \r\n\r\n\r\n \r\n\r\n\r\n TEST\r\n TEST\r\n TEST\r\n \r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n\r\n TEST"
Like it is injecting some spaces in the beginning of the lines, plus some extras new lines. (Where for acknowledge, in Android we had the same "injections" of new lines when using MODE_LEGACY in the parsing, but using MODE_COMPACT in the parsing those new lines aren't there anymore.
from swiftsoup.
Related Issues (20)
- Site Error: https://swiftsoup.herokuapp.com
- Unavailable instance method 'replaceSubrange(_:with:)' was used to satisfy a requirement of protocol 'RangeReplaceableCollection'
- Have 3 <p> and need to display separately HOT 1
- empty doc.location()
- Support for visionOS HOT 6
- How to convert finished html to html inline styled fragment HOT 1
- Unwanted whitespace before <svg> when inside <a> HOT 1
- Common interface for Element and Elements
- Issue with not valid syntax on property unwrapping HOT 1
- Parsing html with iframe inserts stray escaped elements into Document
- removeFirst with Elements type
- SwiftSoup.parse is very slow HOT 1
- Clever "if let" assignment breaks in Swift 5.6.1 on Linux HOT 1
- Many tests are failing due to self-closing tags in HTML HOT 1
- Privacy Manifest HOT 9
- Its so bad and has that much its own behavior that is imposible to controll that easy parsers on swift parsec generated with chatgpt work muuuuch better HOT 1
- Canβt scrap untagged html element
- There is no Palestine please remove that fake banner HOT 1
- Clean document and encoding for maito: protocol results in unexpected output.
- I'm been trying to load HTML from websites that have dynamic/lazy loading
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftsoup.