/** * Convenience method for adding several tags to preserve * in form of a delimiter-separated String.<p> * * The String will be <code>{@link CmsStringUtil#splitAsList(String, char, boolean)}</code> * with <code>tagList</code> as the first argument, <code>separator</code> as the * second argument and the third argument set to true (trimming - support).<p> * * @param tagList a delimiter-separated String with case-insensitive tag names to preserve by * <code>{@link #stripHtml(String)}</code> * @param separator the delimiter that separates tag names in the <code>tagList</code> argument * * @see #addPreserveTag(String) */ public void addPreserveTags(final String tagList, final char separator) { List<String> tags = CmsStringUtil.splitAsList(tagList, separator, true); addPreserveTagList(tags); }
/** * Convenience method for adding several tags to preserve * in form of a delimiter-separated String.<p> * * The String will be <code>{@link CmsStringUtil#splitAsList(String, char, boolean)}</code> * with <code>tagList</code> as the first argument, <code>separator</code> as the * second argument and the third argument set to true (trimming - support).<p> * * @param tagList a delimiter-separated String with case-insensitive tag names to preserve by * <code>{@link #stripHtml(String)}</code> * @param separator the delimiter that separates tag names in the <code>tagList</code> argument * * @see #addPreserveTag(String) */ public void addPreserveTags(final String tagList, final char separator) { List tags = CmsStringUtil.splitAsList(tagList, separator, true); addPreserveTagList(tags); }