I'm using the x2js library to convert XML to JSON. It essentially instantly gives an entire JSON object to work with. However, some of the XML text contained links. As a result, in the JSON, the character "↵" shows up instead of the link text. When I go into my JavaScript file and try to parse through each character to see if it is equal to "↵", it's just a blank character, so I can't ever replace it.
The JSON looks like this when I output the entire object to the console:
div: Array[20]
0: Object
p: Array[2]
0: Object
title: "text is here, this text is OK, I have no problems"
1: Object
text: "Here is some blah blah, ↵ "
1: Object
...
...
19: Object
So within the console, I can see the arrow, which is supposed to be link text. I've tried printing the specific text text from JavaScript to the console, but the "↵" already has disappeared by then, just converted to space.
Is there a way to see immediately if the text contains a "↵"? Or any other ideas?
No comments:
Post a Comment