aspose file tools*
The moose likes Other Application Frameworks and the fly likes HTML formatting Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "HTML formatting Issue" Watch "HTML formatting Issue" New topic
Author

HTML formatting Issue

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Is there a reason why the code below would not show correctly formatted? Here is the HTML that displays the output!



Here is the rendered HTML in the browser!



The exam.description comes from the database with the HTML formatting. A screenshot below shows how it is rendered now!





[Screen Shot 2013-12-22 at 9.25.01 AM.png]


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Figured that out! I had to use the @Html(exam.description) and it renders the raw HTML that I wanted!
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

Glad you figured it out. What language is that? (That uses @html)


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Jeanne Boyarsky wrote:Glad you figured it out. What language is that? (That uses @html)


Sorry not to mention about it. I'm using the Play framework and it is the Play templating language style. I love the idea of passing HTML as function parameters which by the way does justice to a functional programming language like Scala.
 
 
subject: HTML formatting Issue
 
Similar Threads
jQuery Selector issue
jQuery select option
Select & Convert Memory Stream Image to PDF File Using Aspose.Pdf
Fieldset is not working
Fieldset is not working