How to iterate through a innserHTML data in javascript

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


How to iterate through a innserHTML data in javascript



I have a variable having innerHTML data of below format. How can I iterate through this data one by one to update one value.


"<tblFields><rsdata >
<Row __RID='R0' FieldNum='0' Title='Name' Field='Name' ControlHtml='&lt;span />
<Row __RID='R1' FieldNum='0' Title='age' Field='age' ControlHtml='&lt;span />
<Row __RID='R2' FieldNum='0' Title=''&lt;table width=&apos;100% class=&apos;PDS_CELLPADDING_0 PDS_CELLSPACING_0&apos; style=&apos;border-bottom: 0px;&apos;&gt;&lt;tr IsNotField=&apos;1&apos;&gt;&lt;td style=&apos;border-bottom: 0px;&apos;&gt;&lt;img src=&apos;img/photo1.jpg&apos; /&gt;&lt;/td&gt;&lt;td style=&apos;border-bottom: 0px; padding-left: 3px;&apos;&gt;Outstanding Ticklers for merge report&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;'' Field='photo' ControlHtml='&lt;span />
<Row __RID='R3' FieldNum='0' Title='Mark1' Field='Mark1' ControlHtml='&lt;span />
<Row __RID='R4' FieldNum='0' Title='Mark2' Field='Mark2' ControlHtml='&lt;span />"<tblFields><rsdata >"



My requirement is Row __RID='R2' is having Title html tags of given type, which needs to convert to original html table tags(i.e, replace < and &rt; with < and > etc).
Any help will be appreciated









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Visual Studio Code: How to configure includePath for better IntelliSense results

C++ virtual function: Base class function is called instead of derived