Unless I did a mistake, I didn't find a clean/simple answer to my problem.
I have a tags in a string and containing a src attribute :
var str = "<iframe src="https://www.google.com/" height="800" width="500"></iframe>"
Using JS or AngularJS (ONLY !) I want to extract somehow an attribute, for example src :
str.dosmthg("src","http://stackoverflow.com/");
Output :
"<iframe src="http://stackoverflow.com/" height="800" width="500"></iframe>"
Same idea with height and width.
Any suggestions ? Thanks !