Opened 17 years ago
Closed 12 years ago
#588 closed New Feature (duplicate)
Restrict HTML tags
Reported by: | 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
Cc: | top7up@… added |
---|---|
Reporter: | changed from Martin Kou to cristea@… |
comment:2 Changed 17 years ago by
Keywords: | Confirmed added |
---|
comment:3 Changed 16 years ago by
Component: | General → Core : Output Data |
---|
comment:5 Changed 12 years ago by
Keywords: | SF removed |
---|---|
Resolution: | → duplicate |
Status: | confirmed → closed |
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