HtmlUtils: An utils extension for HTML

A totally useful extension, congratulations! :clap: :clap: :clap:

4 Likes

Thank you @Fabio and everyone :heart_eyes:
This project is quite old actually.
It was expected to be released in November 2019 but due to some lib related problems I decided to not release it at that time.
In a recent topic I posted about it and @FahadAhmad asked me if I can give him the extension.
Thus I thought to release the extension.
Never expected huge response for an HTML (which is not considered so much important) related extension.
Thank you :slightly_smiling_face:

2 Likes

Thank you ,
very useful extension.

1 Like

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)