[dev] Allowing specific html tags in the text
Carlos Pedrinaci
cpedrinaci at yahoo.es
Thu Sep 11 09:30:47 PDT 2003
Forget the question I missed the htmlspecialchars line :)
El jue, 11-09-2003 a las 18:06, Carlos Pedrinaci escribió:
> Hi,
> I want to allow the users to use some html tags when introducing a
> project information. For example it would be very nice to allow them to
> make a list when writting the things To-Do or to put the emphasis in
> some others by using <b> etc.. (That would be very nice for agora btw).
> I browsed Horde code and saw the class Text which looked like it was
> what I was looking for (in particular using TEXT_HTML_REDUCED). However
> when I use it the only good thing I get is the replacement of new lines
> by a < /br>. Bold text appears as <b> .. </b> and thats not what I
> desire..
> As a side effect whenever I edit a project < /br> appears twice. For
> that I guess I should get the text back to its "original" value before
> showing the edit form.
>
> Am I doing something wrong? or do I need to create a Filter like the one
> for emoticons?
>
> Carlos
>
> PS: If you want to do what I'm doing check out
> thor/lib/Driver::_filterText
More information about the dev
mailing list