Public
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
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
Highlighted
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!

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

Parshant!

Where can I check the quilt???

Thanks!

Ed

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