1 64 65 package com.jcorporate.expresso.core.security.filters; 66 67 73 public class HtmlFilter 74 extends Filter { 75 76 89 protected static final String [] SPECIAL_STRING_LIST = { 90 "<", ">", "&", 91 "\n", "\r\n", "\t", 92 "<br />\n" 93 }; 94 95 protected static final String [] REPLACE_LIST = { 97 "<", ">", "&", 98 "<br />", "<br />", " ", 99 "<br />" 100 }; 101 102 105 public HtmlFilter() 106 throws IllegalArgumentException { 107 super(SPECIAL_STRING_LIST, REPLACE_LIST); 108 } 109 110 116 public HtmlFilter(String [] specialStringList, String [] replaceList) 117 throws IllegalArgumentException { 118 super(specialStringList, replaceList); 119 } 120 } | Popular Tags |