Public
Occasional Advisor

HTML in announcement is displaying as HTML

Hi.

New to Lithium platform.  I am using simple HTML in an announcement to link up some text, but the HTML is actually displaying in the announcement.  What am I doing wrong?

Thanks

Ed

6 Replies 6
Honored Contributor

Hi Ed,

Do you mean the Announcement component found at Admin > Content > Announcements? This should accept HTML. Can you show us what you have there? Maybe there's an issue with your code.

----------------------------------

Lili McDonald
Senior Community Manager @ Udemy
Connect on LinkedIn
Occasional Advisor

That is the one.  I am using:

Check out all the keynotes and sessions from <a href="https://community.carbonblack.com/t5/Cb-Connect-2018/gp-p/g-7149">Cb Connect 2018!</a> 

Thanks for your reply!

Honored Contributor

Looks like your a href isn't closed.

 

heck out all the keynotes and sessions from <a href="https://community.carbonblack.com/t5/Cb-Connect-2018/gp-p/g-7149"> Cb Connect 2018! </a>

----------------------------------

Lili McDonald
Senior Community Manager @ Udemy
Connect on LinkedIn
Honored Contributor

@esullivan,

Please check the your quilt has below component to get the data from announcement field.

 

<component id="common.widget.announcement"/>

Above component will automatically display HTML text announcement field.

If you are using API to get the text from announcement field then you have to add

${announcement?html} or ${announcement?xhtml}

in place where you are printing them from API.

 

.......
Do you know we work with Kudos and Accepted Solution.

Parshant!

Where can I check the quilt???

Thanks!

Ed

Honored Contributor

@esullivan,

You an check this in Studio > Page.

If its not there in page. Then you have to check into code for this.

.......
Do you know we work with Kudos and Accepted Solution.

Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Khoros customer? For direct assistance from our Support team, please visit the Support Forum.