Recent Topics

1 Dec 04, 2010 05:15    

My b2evolution Version: 4.0.1

How can I stop & from turning into & in the titles of my posts?

2 Dec 04, 2010 10:23

cslepage wrote:

My b2evolution Version: 4.0.1

How can I stop & from turning into & in the titles of my posts?

you shouldn't regardless of your purpose, it will always cause validation error.

3 Dec 04, 2010 14:46

Hmm, okay, the reason I was hoping I could do it was, when a blog post with a "&" in the title gets pushed out into RSS feeds, it turns into "&" and looks strange. I end up having to remember to not use any "&" in my titles.

4 Dec 04, 2010 18:52

/inc/core/_misc.funcs.php:603

// Convert & chars that are not used in an entity
$content = preg_replace('/&(?![#A-Za-z0-9]{2,20};)/', '&', $content);

UPDATE: leaving ampersands unencoded breaks XML feed.


Form is loading...