Note: %2520 appears to be %20 getting encoded again.
Environment
Swift Soup Version: 2.6.1
Xcode Version: 15.3
Additional Notes
I print the original document before and after the clean(document) function as it appears both the original document and the clean document are being modified.
Bug Report
The Clean document function is encoding characters twice. Only happening when a
%20
and a[
or]
are included in the original html data.How to Reproduce
Expected Behavior
Clean
let html = #"<a href="mailto:mail@example.com?subject=Job%20Requisition[NID]">Send</a></body></html>"#
Should result in
Actual Behavior
Note:
%2520
appears to be%20
getting encoded again.Environment
Swift Soup Version: 2.6.1 Xcode Version: 15.3
Additional Notes
I print the original document before and after the
clean(document)
function as it appears both the original document and the clean document are being modified.