Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How an I avoid SwiftSoup from encoding single quotes in a double quote attribute value? #207

Open
ahwulf opened this issue Feb 4, 2022 · 0 comments

Comments

@ahwulf
Copy link

ahwulf commented Feb 4, 2022

I have

<div class="row" data-masonry="{'percentPosition': true, 'itemSelector':'.grid-item', 'columnWidth':'.grid-sizer' }">

if I extract this and then insert into another document, then do html() I get

<div class="row" data-masonry="{&quot;percentPosition&quot;: true, &quot;itemSelector&quot;:&quot;.grid-item&quot;, &quot;columnWidth&quot;:&quot;.grid-sizer&quot; }">

Is there a way to have it not do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant