HtmlUtils: An utils extension for HTML

I have deleted the project so unfortunately I am unable to post aia at this time.
But I had posted some blocks on AI2 community so I am posting them here:

2 Likes

If anyone wants to just select an element by id, tag or class name you can just evaluate one of the following javascript:

document.querySelector(".className");
document.querySelector("#idName");
document.querySelector("tagName");

Note: querySelector returns only the first element
If you want all the elements to be returned use document.querySelectorAll

2 Likes

Awesome. I was looking for something like this
How to get the inner text from an element for eg a pre tag

You won’t get support from the developer here because he is suspended for the next year :confused: You can pm him at the app inventor community or at his website:
http://sunnythedeveloper.epizy.com/

#offtopic
I dont believe it. He was a really nice person. Why he is suspended???

2 Likes

It comes a Null Reference Exception, when I use ParseHtmlFromString…

Can you please post a sample?

Welcome @Mike_is_Coding

The HTML text would be empty,have you checked it.

It isn’t empty. Sometimes, it workes random, but only on the first parse.

Show your block and html test also if you can

GREAT…!!!

i can scraper with this extension?

Hey :v: Could you please help me? :sweat_smile: I have some trouble with your extension (I have a problem with HtmlUtils extension)… Thank you :slightly_smiling_face:

The Developer is suspended in Community, you can contact them through Website or AI2 Community :blush:

1 Like

no need to replace anything as for me I saw adverts of yoga so it depends if you sometimes browse nasty things that is what you will see. :sweat_smile: :sweat_smile:

1 Like

Hi
You should ask your question here:

2 Likes

Thanks :+1:

Can you solve one more problem regarding This…
I want to scrape the href value in a anchor tag.
Example :
<a href="example1.php">Example1</a>
<a href="example2.php">Example2</a>
I want (example1.php, example2.php) not (Example1, Example2)

This extension has lots of bugs…
We need update

and this bug report is useless without mentioning the details

as the author of the extension is suspended here in the community, please report a detailed bug report here http://sunnythedeveloper.epizy.com/2020/07/10/htmlutils-an-utils-extension-for-html/
also ask further questions concerning this extension there
thank you

Taifun

1 Like