Need help with News ticker

lenamtl
lenamtl used Ask the Experts™
on
Hi,
I'd like to use this news ticker code
http://risq.github.io/jquery-advanced-news-ticker/
Check the second example called: ONE LINE TICKER WITH CALLBACKS & METHODS EXAMPLE

This going to display news data (text only) from the database MySql

The problem I'm having is that the data will contain html code and special caracters.
When the text is placed into  data-infos=" " 
This don't render html code

When the data appear into the <div class="infos-text"> area there is no problem
Only the first item use this

So I'm looking so a solution
Any clue?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013
Awarded 2012
Commented:
Hi,
this should work.
Just change the line from
	$('#nt-example2-infos .infos-text').text($('#nt-example2 li:first').data('infos'));

Open in new window

to
	$('#nt-example2-infos .infos-text').html($('#nt-example2 li:first').data('infos'));

Open in new window

Instead of setting the text, set the HTML.

Live sample:
http://plnkr.co/edit/0AtP9MuXAhZFgOouC1Qe

HTH
Rainer
Thanks a lot

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial