Skip to content
Discussion options

You must be logged in to vote

ah ok, because for that you could also use Ti.XML and use it like this:

const doc = Ti.XML.parseString("your html string");
const titleNode = doc.getElementsByTagName('title').item(0);
const title = titleNode ? titleNode.textContent : 'No title found';

it's not DOM parsing as you would do it in a web browser but using XML methods.

Otherwise you could even use a webview and evaljs to parse HTML inside the webview and return the parts you'll need.

But I don't think jsdom will run. Perhaps someone else finds the thread and will jump in with a solution, so lets see. Otherwise: more people use Slack for support

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Axemark38
Comment options

@m1ga
Comment options

m1ga Jun 25, 2025
Collaborator

@Axemark38
Comment options

@m1ga
Comment options

m1ga Jun 25, 2025
Collaborator

Answer selected by Axemark38
@Axemark38
Comment options

@m1ga
Comment options

m1ga Jun 25, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants