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
I'm trying to parse an atom feed that has a div tag nested inside the summary element:
<summary type='xhtml'><div xmlns='http://www.w3.org/1999/xhtml'>Old software joke: “After the apocalypse, all that’ll be left will be cockroaches, Keith Richards, and markup characters that have been escaped (or unescaped) one too many (or few) times.</div></summary>
The summary object ends up looking like this:
{div: {#text: "Old software joke: “After the apocalypse, all that…", @_xmlns: "http://www.w3.org/1999/xhtml"}, @_type: "xhtml"}
It appears that getText() only checks for a #text property on the root object, so it returns an empty string here, because the #text property is on the nested div element.
The text was updated successfully, but these errors were encountered:
I'm trying to parse an atom feed that has a div tag nested inside the summary element:
The summary object ends up looking like this:
It appears that
getText()
only checks for a#text
property on the root object, so it returns an empty string here, because the#text
property is on the nested div element.The text was updated successfully, but these errors were encountered: