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

[ONOXMLElement stringValue] ignores the inner element #18

Closed
onmyway133 opened this issue Jun 11, 2014 · 1 comment
Closed

[ONOXMLElement stringValue] ignores the inner element #18

onmyway133 opened this issue Jun 11, 2014 · 1 comment

Comments

@onmyway133
Copy link

Suppose I have this
<food> text before<br /> text after </food>

When I call [ONOXMLElement stringValue], I receive "text before text after"
But I want to receive "text before<br /> text after"
How to deal with this ?

@onmyway133 onmyway133 changed the title [ONOXMLElement stringValue] ignore the inner element [ONOXMLElement stringValue] ignores the inner element Jun 11, 2014
@mattt
Copy link
Owner

mattt commented Jun 11, 2014

Easiest way for now would be to do a find & replace. XML doesn't have a built-in notion of <br/> being anything in particular, so the current stripping behavior is expected. There are no current plans to add a feature to make this conversion automatically.

@mattt mattt closed this as completed Jun 11, 2014
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

2 participants