# Help! How to load text from a webpage into variable

**URL:** <https://forum.kirupa.com/t/help-how-to-load-text-from-a-webpage-into-variable/193848>\
**Category:** flash\
**Created:** [July 18, 2006, 7:36pm UTC](https://forum.kirupa.com/t/help-how-to-load-text-from-a-webpage-into-variable/193848 "2006-07-18T19:36:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kutyadog](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@kutyadog](https://forum.kirupa.com/u/kutyadog)\
**Post date:** [July 18, 2006, 7:36pm UTC](https://forum.kirupa.com/t/help-how-to-load-text-from-a-webpage-into-variable/193848/1 "2006-07-18T19:36:27Z")

</div>

Hello,  
Ok, I want to be able to read the text off of a website’s html and put it in a variable.  
This website does not offer xml RSS feeds and I have no control over how its data is presented.

I had planned on doing this:

```auto
myPAVar = new LoadVars();
myPAVar.load(xPublicAdvisory);
myPAVar.onLoad = function(src:String) {
     if (success == true) {
         trace( this);
     }
}

```

Problem with this, is that the data that is returned is an incomplete jarbled mess like this:

%20Archive%3C%2Fa%3E%20%2D%0A%3Ca%20href%3D%22%2Faboutwap%2Eshtml%3Ftext%22%3EMobile%20Products%3C%2Fa%3E%20%2D%0A%3Ca%20href%3D%22%2Fsignup%2Eshtml%3Ftext%22%3EE%2DMail%20Advise%3C%2Fa%3E%20%2D%0A%3Ca%20href%3D%22%2

There must be a way to get this text in a complete and readable form. Once I have the text loaded, i will just issue a split command on the text to break it down and find my variables…

Any help is greatly appreciated.

thanks  
chris johnson
