Welcome to Geeklog, Anonymous Thursday, December 26 2024 @ 06:40 pm EST
Geeklog Forums
Possibly silly question -- non breaking spaces in stories
I'm putting together a website for a friend to exhibit her poetry. Since poetry depends somewhat on presentation, I'm kept busy trying to make the spacing come out right while staying within the Geeklog publishing rules.
I find that I'm really missing the non-breaking space. I've tried adding to the code in html mode, but geeklog simply swallows it.
So I've added various incarnations of nbsp,  , to the admin_html array, but it doesn't seem to be recognized. Thought I'd ask first before digging further into the code.
Thanks, as they say, in advance.
Ron
I find that I'm really missing the non-breaking space. I've tried adding to the code in html mode, but geeklog simply swallows it.
So I've added various incarnations of nbsp,  , to the admin_html array, but it doesn't seem to be recognized. Thought I'd ask first before digging further into the code.
Thanks, as they say, in advance.
Ron
11
10
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
This takes place in the kses.class.php file under system/classes. I'm no expert in that class, but I think if you add
$string = str_replace(' ', ' ', $string);
to the end of the
function _normalize_entities($string)
It won't eat the non-breaking spaces. But I haven't tried this.
$string = str_replace(' ', ' ', $string);
to the end of the
function _normalize_entities($string)
It won't eat the non-breaking spaces. But I haven't tried this.
8
9
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Geeklog is notoriously bad with keeping HTML entities and some special characters (e.g. backslashes) intact. But things are getting better and, as Laugh pointed out, Geeklog 1.4.1 should keep HTML entities intact.
bye, Dirk
bye, Dirk
9
7
Quote
All times are EST. The time is now 06:40 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content