I'm trying to display the content of myPosters
array, that contain HTML code.
However this HTML code is not seen as HTML because it was created according to some gwt code which is understandable.
This is how the code is presented: This is a Title <br> This is a Description
And instead of this <br>
I want to convert it, and insert a "real" break line.
I already tried to "convert" that code inside photoCaption
div to text()
and then to html()
, using: $('#photoCaption').text($('#photoCaption').html());
But in this case instead of <br>
I got <br>
How can I get rid of this, and present the information as "real" HTML code?
NOTE: Move your mouse over the first image to see the problem!
It should also been taken into account that there is an "image slider" in the real code, and it changes the image presented and the respective photoCaption
content.