I am working with google map api ... http://code.google.com/p/gmaps-samples-flash/source/browse/trunk/samplecode/GeocodingSimple.mxml
What i want to do is to take up all the steps of direction, and place them in a datagrid. but the problem that the google map api provide description on in HTML format. and then i put this steps data in my flex datagrid, it shows up all the html tags in it too, including with the data.
Can there be some way i can do this, without the html tags.
My code for the google maps look like this :
private function processTurnByTurn():void {
var stepText:String;
var stepMarker:Marker;
for (var turnCounter:int=dir.getRoute(0).numSteps-1; turnCounter >= 0; turnCounter--)
{
StepArray.addItem({step: dir.getRoute(0).getStep(turnCounter).descriptionHtml});
}
}
This is the function to create the step ArrayCollection for the datagrid and the datagrid code looks like this:
<mx:DataGrid width="100%" height="100%"
dataProvider="{StepArray}">
<mx:columns>
<mx:DataGridColumn headerText="Column 1" dataField="step"/>
</mx:columns>
</mx:DataGrid>
Can someone help me out with this issue. Regards Zeeshan