Subscribe via Feed

Using html characters in XPages

Steve Castledine, Aug 17, 2009 9:11:14 AM

Just a quick tip for using html characters in your XPages.

Because XPages are essentially xml, you cannot add, for example, " " for a space etc directly into the source. You need to use instead the xml reference " " (you can press space twice for this to be inserted automatically).

You can find a quick list of these entities here.



2 responses to Using html characters in XPages

Mark Gargan, August 17, 2009 2:59 PM

For other awkward characters, such as parentheses and < > you can aways wrap them in <![CDATA[ ]]>


Paul T. Calhoun, August 17, 2009 2:18 PM

If you are having trouble remembering the sequence if you hit <ctrl><space> in the design tab of an XPage it will add a the non breaking space where-ever you need it.