Changeset 615
- Timestamp:
- 04/25/10 13:59:29 (22 months ago)
- File:
-
- 1 edited
-
XMLUtils/trunk/src/corinis/util/HTMLModify.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
XMLUtils/trunk/src/corinis/util/HTMLModify.java
r614 r615 730 730 public static boolean isAllowedHTMLTag(String tag) 731 731 { 732 String[] allowed = { "b", "font", "strong", "i", "div", "span", "em", "del", "sub", "sup", "u", "img", "a", "code", "table", "tr", "td", "tbody", "thead", "th", "br", "p", "il", "ul", "ol", "li", "hr", "pre", "embed", "object", "param", "input", "textarea" };732 String[] allowed = { "b", "font", "strong", "i", "div", "span", "em", "del", "sub", "sup", "u", "img", "a", "code", "table", "tr", "td", "tbody", "thead", "th", "br", "p", "il", "ul", "ol", "li", "hr", "pre", "embed", "object", "param", "input", "textarea","video" }; 733 733 tag = tag.trim().toLowerCase(); 734 734 for (int i = 0; i < allowed.length; i++) … … 749 749 public static boolean isNotAllowedEmpty(String tag) 750 750 { 751 String[] allowed = { "font", "style", "img", "span", "a", "param", "embed", "textarea", "input" }; 751 String[] allowed = { "font", "style", "img", "span", "a", "param", "embed", "textarea", "input", "object", "video" }; 752 tag = tag.trim().toLowerCase(); 752 753 for (int i = 0; i < allowed.length; i++) 753 if (allowed[i].equals IgnoreCase(tag))754 if (allowed[i].equals(tag)) 754 755 return true; 755 756 return false;
Note: See TracChangeset
for help on using the changeset viewer.
