how remove limitations in HTML tags in records?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
empiryk
Posts: 33
Joined: Tue Feb 04, 2003 6:18 pm
Location: Cracow - Poland
Contact:

how remove limitations in HTML tags in records?

Post by empiryk »

As in subject.
Why I want to have almost all HTML tags in records? Becuse of flexibility of layout. I started to use BB-code ... but it is wrong way. For example - if I want to write some code example (not - PHP code) I use

Code: Select all

 command, but this BB-code uses <pre> and <blockquote> tags together - and this results soiling of my layout.  :x 
I would like to have in phpMyFAQ option to define (enumerate) all HTML tags which I can legitimatly use in creating/editing records of FAQ. Why not?
The Bat! Polish Support http://thebat.pl
[ I apologise for my poor english ;> ]
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you can edit the function safeHTML($html) in the file functions.php. Edit this line

Code: Select all

$html = strip_tags($html, "<b><i><u><a>");
to add more HTML Tags.

You're right, this should be editable in the configuration!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
empiryk
Posts: 33
Joined: Tue Feb 04, 2003 6:18 pm
Location: Cracow - Poland
Contact:

Post by empiryk »

Thorsten wrote:

Code: Select all

$html = strip_tags($html, "<b><i><u><a>");
to add more HTML Tags.
Thx - this is it.
The Bat! Polish Support http://thebat.pl
[ I apologise for my poor english ;> ]
Post Reply