Getting HTML into Titles/Footnotes

8

So you want to add a URL or an email mailto: in that little footnote of your PROC REPORT so people can pester you with more questions?

'Contact Us'

But instead of 'Contact Us' the entire string appears:
<a href="mailto:bi-weblog@earthlink.net">Contact Us<a/>
The Magic?? Add the <div;> </div> tags around the string, so the page renders this correctly.

Here is the sas code:
footnote1 ' <div> <a href="mailto:bi-weblog@earthlink.net">Contact Us</a> </div>';

Share

About Author

Angela Hall

Senior Technical Architect

Angela offers tips on using the SAS Business Intelligence solutions. She manages a team of SAS Fraud Framework implementers within the SAS Solutions On-Demand organization. Angela also has co-written two books, 'Building BI using SAS, Content Development Examples' & 'The 50 Keys to Learning SAS Stored Processes'.

8 Comments

  1. And... for the explanation:
    Do not use any text Outside the "DIV" tags in the footnote command. The HTML-text (like setting the line to a particular color/font) inside the footnote quotes 'resolves' correctly if the entire line begins and ends with the div tags, and no other text outside it. (Add the remaining text on other footnote lines, if needed.)
    Thank you, Angela.

  2. Is there a way to do that in Enterprise Guide? Even with the "div" tags added around the text, the footnote still "resolves" to display the entire typed-in html text (including the "" text.

    • Angela Hall

      Reni,
      Verify that the Results are generating 'HTML' output rather than the 'SAS Report' format. This is a preference stored in Tools -> Options -> Results General.

      ~ Angela

        • Angela Hall

          Reni,
          Sorry you are still having trouble. I was able to successfully get EG output (in 4.3) using the <div></div> tags within the footnote text box of a EG Task.

          <div>Click this <a href="bi-notes.com">link</a></div>

          Might want to check in with Tech Support to see if something is set in your Options that is causing the html code to be displayed.

          ~ Angela

Leave A Reply

Back to Top