SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)
4.53k
stars
345
forks
source link
Weird behaviour on printing element text when containing <del> & <ins> tag #106
Closed
skipness closed 5 years ago
Here is the fragment html code:
I use the following code and print the text:
The output is
ABCD EFG
, which is as expected, but if I slightly modify the html code to:The output become
A BCD EFG
I am not sure why there is a space between 'A' and 'B'