Wedge
Public area => Bug reports => The Pub => Archived fixes => Topic started by: Arantor on March 20th, 2012, 08:56 PM
-
See live's thought, it had a double space in it, wedit::preparsecode converted that to an nbsp, but that's displayed rather than converted.
-
Hmm.
Thoughts are still a tad buggy, most notably in the sidebar with Ajax or something. Didn't know about that specific one though. Iirc Wedge and SMF add a nbsp and a space every time it finds two consecutive spaces, right?
-
Specifically the preparser does that, switches two spaces for a nbsp then a space.
-
So I guess all we have to do is a str_replace?
-
Probably, need to sit and play with it some more in case there's other odd side effects of over-processing. I'm thinking of ', " and & in particular...
-
I hate preparsing. There. I said it.
-
You and me both :P
-
Isn't there an un_preparsecode() function or something somewhere? :whistle:
-
There is, there's also an un_htmlspecialchars function and both have their place. But their place is rather specific and complicated.
-
Can't reproduce now.