1 (edited by Bwongar.com 2005-01-14 06:33)

Topic: Not parsing the ampersand

If I were to type a tag with non-breaking space (& nbsp; ), PunBB doesn't parse it out. I'm going to put the nbsp; in the tag below:

<div> </div>

And you'll see that it does not show up! This also works with regular text like here --->

Oddly enough, it shows up correctly in preview mode. I'm too damn tired right now otherwise I'd help figure it out.

2 (edited by mark36ph 2005-01-14 07:23)

Re: Not parsing the ampersand

the code you are using there is html. punbb does not use html in posts.
it used BBCode.
it does not make it disapear in BBCode though [div] [/div]

but if you do it with the bold action it will disapea 

3

Re: Not parsing the ampersand

there is a function - pun_trim, it stripes out   from your posts, it stripes out non-printable characters also

Re: Not parsing the ampersand

yeh but the & nbsp; should appear in code tags

Re: Not parsing the ampersand

I'll look into it.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

6 (edited by Bwongar.com 2005-01-14 17:29)

Re: Not parsing the ampersand

Just replace the ampersand with the HTML equivalent: & amp;

If you show just the regular ampersand, it is not XHTML strict. yikes

Re: Not parsing the ampersand

It's not that simple. I need to allow HTML numeric character references, but not HTML entitites.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Not parsing the ampersand

Ah yes. I'm sorry, after all, I just got into your software about a week ago. I'll look into this.

Re: Not parsing the ampersand

Fixed.

"Programming is like sex: one mistake and you have to support it for the rest of your life."