Hallo
I read
Native JSON and HTML Reading and I use it since a while, but since yet I used it only when I do some HTTP Requests, then I use the var. %http_data to get Tags and Values out of that HTML-Soup. Great feature!
Now, I want to get content from a variable containing only parts of HTML, e.g.:
Variable %html :
<p>
<strong>
<font color="red">FirstText</font>
</strong>
</p>
<p>
<strong>
<font color="green">NextText</font>
</strong>
</p>
So to get e.g. the first content of the font-tag, here "FirstText", I just do this:
%html[font](1)
or also, here for the second font-content (NextText):
%html.font(2)
jsoup does a good job, but if the html-soup is too wrong, then it would fail. E.g. if I have such:
<p>
SomeText</p>
TaglessText
It wont be able to parse it, then it wouldnt be recognized as html at all.
But text like <!-- TaglessText --> will work again :)
Thanks for that great feature!
frank
Tasker (direkt) 6.2.15-rc on Android 9.0