Hi, I am trying to get a hyperlink when I click on a point map created by html report generator, using esri leaflet. I attach an image of what I got if I use the same hyperlink I have used in the table (correct hyperlinks). What would be a good approach? Thanks
Page 1 / 1
Hi @juandiegoboh
You're seeing this behaviour as the HTMLReportGenerator converts certain characters in the hyperlink into HTML entities. You can see this by viewing the HTML output--you should see characters such as < and >. This is to avoid reserved HTML characters being interpreted as HTML code in the output. In your case, you do want those characters to be interpreted as HTML.
Try using the TextDecoder to decode these characters and single quotes within the HTML tag (eg. <a href='http://www.safe.com' target='_blank'>Safe Software</a>). The hyperlinks should appear correctly in the popup.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.