Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editing an Id in HTML where < and > get chaged to gt; and lt;

Status
Not open for further replies.

HoboMcGee

Programmer
Mar 22, 2013
1
US
Basically, when I try and edit the value of an id, it's keeping the &, and also changing < to lt; and > to gt; which I'm trying to prevent it from doing. Does anyone have a solution? Thanks!

This line creates the id element that uses a variable:

CloseWindow.Document.Body.InnerHTML = CloseWindow.Document.Body.InnerHTML & "<br>" & "<div style=""height:20%;width:90%;border:1px solid #ccc;font:16px/26px Comic Sans, Garamond, Serif;overflow:auto; margin- left:auto; margin-right:auto;""><span id=""Links"">" & HTMLLinkString & "</span></div>"

Then this line enables me to edit it:

HTMLLinkString = HTMLLinkString & "<a href=""" & Link & """ target=""_blank"">" & CurrentId & "</a>"

This line updates it:

CloseWindow.Document.GetElementById("Links").InnerText = HTMLLinkString

 
What about this ?
CloseWindow.Document.GetElementById("Links").Inner[!]HTML[/!] = HTMLLinkString

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top