<a> tag (and other HTML tags) in text variable
Feb 23, 2022
Is there a way to pass in a link tag? I'm trying to pull content from a json file into a text box on the slide - I need to be able to include clickable links. I'm not sure if <a> tags are supported, and if not, do you know if there's another way to make a link without doing so through the UI?
My <b> and <u> tags, which are supposed to be officially supported in variables, also aren't working.
Here's a portion of the json:
"a3": {
"cat": "Educate Yourself",
"title": "Dive into the Challenges Faced by the Black African American Community",
"desc": "<b><u>Why Opening Up at Work Is Harder for Minorities</u></b><br><a href='https://hbr.org/podcast/2018/08/why-opening-up-at-work-is-harder-for-minorities'>Watch this 22 minute podcast episode</a>."
},
All of the text populates properly. The <br> page breaks work. The <b> and <u> do not work, and do not show up as text. The <a> tags do not work, and do not show up as text.
2 Replies
Far from ideal, a hotzone w/a javascript trigger could call window.open is a workable option
I would need the URL to come from the config file, and right now I can't get a clickable element to come through using a text variable - how would the hotzone work, considering I cannot specify the URL through the source file?
I wonder if this would work: Right now, there's a 'modal' (a layer made to look like a modal) with the text passed in through the config file, and an "I did this" button... if I add another button to the modal saying, "Let's do it!" with a trigger for a javascript function with a paramater looking for a URL from the config file... I will try that next!