/** * Convenience method for adding several tags to preserve.<p> * * @param preserveTags a <code>List<String></code> with the case-insensitive tag names of the tags to preserve * * @see #addPreserveTag(String) */ public void addPreserveTagList(final List preserveTags) { for (Iterator it = preserveTags.iterator(); it.hasNext();) { addPreserveTag((String)it.next()); } }
/** * Default constructor that turns echo on and uses the settings for replacing tags. * <p> */ public CmsHtmlStripper() { reset(); }
/** * 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); }
content = tidy(content);
/** * 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); }
content = tidy(content);
/** * Default constructor that turns echo on and uses the settings for replacing tags. * <p> */ public CmsHtmlStripper() { reset(); }
/** * Convenience method for adding several tags to preserve.<p> * * @param preserveTags a <code>List<String></code> with the case-insensitive tag names of the tags to preserve * * @see #addPreserveTag(String) */ public void addPreserveTagList(List<String> preserveTags) { for (Iterator<String> it = preserveTags.iterator(); it.hasNext();) { addPreserveTag(it.next()); } }