-
Notifications
You must be signed in to change notification settings - Fork 82
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
xml_text does not trim " " #151
Comments
@jimhester thanks for getting on this so fast. Unfortunately this fix opens another error: Take this example:
So The expected result would be:
|
Ok I refactored how this was being done, thanks for the reproducible example. |
Perfect, thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my html-code i have
 
(i.e. non non-breaking space). If i try to get the the text viaxml_text(..., trim=TRUE)
it returns the non-breaking space instead of an empty string.Is this a feature? IMHO the expected behavior would be to return an empty string...
Minimal-Example:
Workaround:
stringi::stri_trim_both(xml_text(doc, trim = TRUE))
orstringr::str_trim
The text was updated successfully, but these errors were encountered: