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
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