Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Output HTML-Code  RSS feed

 
Florian Hassler
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the follogwing little Problem:



Where entry.text is a String like <p>This is a <strong>damn</strong> formatted text!</p>

Right now the HTML-Tags get changed so one will see them on the screen but I want them to be code.

How on earth is it possible to print exactly this string above onto my page-source not on the page itself? Is it even possible or is the concept completely wrong?

TIA
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use h:outputText.
 
Florian Hassler
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
of course,


works. thank you very much!

f.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!