Gursimrat
11 years agoLeader
Rich text not coming through, any alternative for this?
I am creating a widget which pulls through all the recent activity for the commnity via recent threads API. This is working fine for the plain text but I just checked it with putting in some images and smileys in the replies, but it did not show up.
The response body in the xml is, only orange text below came in the response, but where the img tag starts, it didn't show up in the page where I am pulling it. is there any way I can skip the images via ftl? or any other alternatives? I want if there is any image, it should skip it and print the text only. Is is doable in FTL?
<body type="string"> <P>Hello Varun, this is a nice blog post, <STRONG>lets us</STRONG> <img class="emoticon emoticon-catindifferent" id="catindifferent" src="/smilies/16x16_cat-indifferent.png" alt=":catindifferent:" title="Cat Indifferent" />of <FONT size="4" color="#FF0000">this captures </FONT></P> <div class="lia-spoiler-container"><a class="lia-spoiler-link" href="xyz.stage.lithium.com/#" rel="nofollow">Spoiler</a><noscript> (Highlight to read)</noscript><div class="lia-spoiler-border"><div class="lia-spoiler-content">style</div><noscript><div class="lia-spoiler-noscript-container"><div class="lia-spoiler-noscript-content">style</div></div></noscript></div></div> <P> </P> <P>as well </P> <P> </P> <P> </P> </body>