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
These 2 lines are equivalent for HTML markup, but they are not suitable for the case of comparing strings (or hashes).
Is it possible to change this? Or is there some good option to do this (preferably without using regex)?
The text was updated successfully, but these errors were encountered:
The internal TreeSink by which this crate integrates with the html5ever HTML does not transport the actual source text and/or positions, so we cannot reproduce them.
You can enable the deterministic feature of this crate to retain the order of the attributes, but this is not the only thing that could change compared to the source text, i.e. to ensure comparing/hashing strings yields stable results.
The string obtained from
html()
, although equivalent for html markup, is not such in the case of a string.Example:
and
These 2 lines are equivalent for HTML markup, but they are not suitable for the case of comparing strings (or hashes).
Is it possible to change this? Or is there some good option to do this (preferably without using regex)?
The text was updated successfully, but these errors were encountered: