0

Can some one teach me how to change getContent() from journal article xml to html.
Here my code

<%
JournalArticle art = JournalArticleLocalServiceUtil.getArticle(journalrow.getGroupId(), journalrow.getArticleId());
            String contentXML = "";
            contentXML = art.getContent();
%>

<tr>
        <td class="title"><A href="<%=articleURL.toString()%>" onclick="window.open(this.href,'popupwindow', 'width=800,height=600,scrollbars,resizable'); return false;"><%=journalrow.getTitleCurrentValue() %></A></td>
</tr>
<tr>
        <td><a class="date"><%= dateFormat.format(journalrow.getModifiedDate()) %></a> - <a class="content"><%= journalrow.getContent()%></a></td>  
</tr>
<tr>
        <td class="date"></td>    
</tr>

output

What is Lorem
13/06/2013 - Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
]]>

there are symbols at the end of content

2
Contributors
2
Replies
8
Views
4 Years
Discussion Span
Last Post by LastMitch
0

okay i got this solution.

<%
String articleContent = JournalContentUtil.getContent(groupId ,journalrow.getArticleId(), journalrow.getTemplateId(), null, themeDisplay.getLanguageId(), themeDisplay);
%>
<tr>
                <td class="title"><A href="<%=articleURL.toString()%>" onclick="window.open(this.href,'popupwindow', 'width=800,height=600,scrollbars,resizable'); return false;"><%=journalrow.getTitleCurrentValue() %></A></td>
            </tr>
            <tr>

                <td><a class="date"><%= dateFormat.format(journalrow.getModifiedDate()) %></a> - <a class="content"><%//= journalrow.getContent()%><%=articleContent %>
            <tr>
                <td class="date"></td>    
            </tr>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.