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
Now the table didn't get moved in the result but the doesn't get decoded to \u00a0 anymore. If I then try to use decodeEntities=true it encodes it even more:
When I have this input:
<root><table><div>test </div></table></root>
and I run this code:it moves the table which is a behaviour I don't want, so I use
xmlMode=true
like so:Now the table didn't get moved in the result but the
doesn't get decoded to\u00a0
anymore. If I then try to usedecodeEntities=true
it encodes it even more:My current workaround is to use the libraries
htmlparser2
anddom-serializer
separately like so:It is weird behaviour and I can't really tell where the error is happening, but I suppose it's the lack of options to pass to the serializer.
The text was updated successfully, but these errors were encountered: