You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's my third issue in a row, sorry if that's annoying. I understand it's not easy to make such a library, I would help if I could...
Here's a simple script this issue occurs in:
p = pq("<span><foo><bar></span>")
print(p("span").html(), p("span").text())
p = pq("<span><b><foo></b><bar></span>")
print(p("span").html(), p("span").text())
Basically, if there are entities on the beginning and end of the selected element, then entities are decoded, even in HTML, when they shouldn't... Possible reason? Tried to search for it, but I really don't understand the code... Thanks.
The text was updated successfully, but these errors were encountered:
tag.text is unencoded, while this function shouldn't return unencoded. Maybe just return it encoded?
I would fix it, but I don't see any function here for encoding/decoding entities in the project... how do I do it? I only know that there's one in html built-in library
That's my third issue in a row, sorry if that's annoying. I understand it's not easy to make such a library, I would help if I could...
Here's a simple script this issue occurs in:
Output:
while it should be
Basically, if there are entities on the beginning and end of the selected element, then entities are decoded, even in HTML, when they shouldn't... Possible reason? Tried to search for it, but I really don't understand the code... Thanks.
The text was updated successfully, but these errors were encountered: