what i'm trying to do is getting data from an html file and i want the output to be a json object in angularjs i'm not quite sure if this is possible or not .
so for example i have this html file test.html
<my-tag type='text' size='14' default='header' label='Header1' />
<my-tag type='textarea' size='50' default='paragraph' label='Text1'/>
i need a function that call this html file and it returns json object like
[
{ label:'Header1', type: 'text', default:'header', size: '14'},
{ label:'Text1', type:'textarea',default:'paragraph', size: '50'}
];