Opened 17 years ago

Closed 11 years ago

#588 closed New Feature (duplicate)

Restrict HTML tags

Reported by: cristea@… Owned by:
Priority: Normal Milestone:
Component: Core : Output Data Version:
Keywords: Cc: top7up@…

Description

The cleanAndPaste() function works very good on Word content. I think that you can extend this feature to filter some tags.

For example I want to allow only few tags (on one instace of FCKeditor). Let's say I want to allow only <br>, <a>, <strong>, <em> and <u> on that instance. Other HTML tags will be removed (like <table>, <p>, etc.).

Perhaps it can be added some deny/allow tags function to remove the unwanted tags. Allowed/denied tags can be defined in FCKeditor class using a string var (PHP ex: $FCKEditor->AllowedTags = "br,a,strong,em,u"; or/and $FCKEditor->DeniedTags = "table,tr,td,th";).


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=741079&group_id=75348&atid=543656

Change History (5)

comment:1 Changed 17 years ago by Martin Kou

Cc: top7up@… added
Reporter: changed from Martin Kou to cristea@…

It can be done in PHP strip_tags() function. read more: http://www.php.net/manual/en/function.strip-tags.php


Moved from SF. Original poster: top7up

comment:2 Changed 16 years ago by Wojciech Olchawa

Keywords: Confirmed added

comment:3 Changed 15 years ago by Artur Formella

Component: GeneralCore : Output Data

comment:4 Changed 12 years ago by Jakub Ś

This ticket is related to #8726

comment:5 Changed 11 years ago by Jakub Ś

Keywords: SF removed
Resolution: duplicate
Status: confirmedclosed

This ticket will not be fixed for CKE 3.x but will be fixed for CKE 4.x what has already been described in #9829.

Closing this one as DUP of #9829

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy