Welcome to Geeklog, Anonymous Friday, October 18 2024 @ 05:07 am EDT

Geeklog Forums

Highlighting Text in a Story


Status: offline

congleal

Forum User
Full Member
Registered: 11/08/04
Posts: 179
I've tried several different ways to highlight exerpts in a story:
<span style="background-color: rgb(255, 255, 0);">
and from frontpage:
<span style="background-color:#FFFF00;">

neither of which worked. This is regular html, I guess so why doesn't it work? Please Help.

Lee
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The style attribute is filtered out by default. Did you add it to the list of allowed HTML?

bye, Dirk
 Quote

Status: offline

congleal

Forum User
Full Member
Registered: 11/08/04
Posts: 179
Where do I do that?

Thanks
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 11/06/02
Posts: 523
near the bottom of config.php

there are already some in there by default. It is easy to do, you add the tag then the allowed attributes.
 Quote

Status: offline

congleal

Forum User
Full Member
Registered: 11/08/04
Posts: 179
Sorry for being such a dunce, what is the proper syntax for the entry in the config.php?
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
the code for the span tag is already in your allowable html for admins list including the class and id attributes. if you use a class or id and put the style into your CSS, all will be well.

or, the code is like this:
Text Formatted Code
    'span'  => array('class' => 1, 'id' => 1, 'style' => 1),

 
 Quote

Status: offline

congleal

Forum User
Full Member
Registered: 11/08/04
Posts: 179
That worked! Thanks all
 Quote

All times are EDT. The time is now 05:07 am.

  • 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