Sunday, August 10, 2008

Needs some space

If you are writing a jsp in xhtml you can't use normal xml entity references. eg. &bsnp; This is because you can't set entity declarations, like this. <!--ENTITY nbsp "&#160;" -->]> You will have to do this. &amp;nbsp;

3 comments:

  1. Actually, I think you can use &nbsp; in XHTML

    ReplyDelete
  2. sorry...that should read the entity notation for ampersand "& amp ;" plus nbsp;

    ReplyDelete
  3. I'm not sure you can with strict xhtml. Which is basically why I wrote this post.

    ReplyDelete