/** * @see org.htmlparser.Tag#setAttribute(java.lang.String, java.lang.String) */ public void setAttribute(String arg0, String arg1) { m_decorated.setAttribute(arg0, arg1); }
/** * @see org.htmlparser.Tag#setAttribute(java.lang.String, java.lang.String, char) */ public void setAttribute(String arg0, String arg1, char arg2) { m_decorated.setAttribute(arg0, arg1, arg2); }
/** * @see org.htmlparser.Tag#setAttribute(java.lang.String, java.lang.String) */ public void setAttribute(String arg0, String arg1) { m_decorated.setAttribute(arg0, arg1); }
/** * @see org.htmlparser.Tag#setAttribute(java.lang.String, java.lang.String, char) */ public void setAttribute(String arg0, String arg1, char arg2) { m_decorated.setAttribute(arg0, arg1, arg2); }
/** * @see org.htmlparser.Tag#setAttribute(java.lang.String, java.lang.String) */ public void setAttribute(String arg0, String arg1) { m_decorated.setAttribute(arg0, arg1); }
/** * @see org.htmlparser.Tag#setAttribute(java.lang.String, java.lang.String, char) */ public void setAttribute(String arg0, String arg1, char arg2) { m_decorated.setAttribute(arg0, arg1, arg2); }
public void visitTag(Tag tag) { if (tag.getRawTagName().equalsIgnoreCase("img")) { String imageValue = tag.getAttribute("src"); if (imageValue.contains("base64")) { String contentId = getContentId(); tag.setAttribute("src", "cid:" + contentId); base64ImagesMap.put(contentId, imageValue.substring(imageValue.indexOf("base64") + 7, imageValue.length())); } } }
/** * 处理style属性中应用的链接和图片,对于有些图片已经用<cms:uri>标签处理过时,是不需要再进行处理的 * @param tag */ protected void processStylePropertyOfTag(Tag tag) { String style = tag.getAttribute("style"); int linkhandletype = needProcessStyleAtrribute(style); if(linkhandletype == LINK_NO_PARSER_NO_DISTRIBUTE) return ; style = this.handleStyleCode(style); if(style != null) tag.setAttribute("style",style); }
private void setExecutionResult(ExecutionResult executionResult) { NodeList cells = rowNode.getChildren(); for (int i = 0; i < cells.size(); i++) { Node cell = cells.elementAt(i); if (cell instanceof Tag) { Tag tag = (Tag) cell; tag.setAttribute("class", executionResult.toString(), '"'); } } } }
private void setExecutionResult(ExecutionResult executionResult) { NodeList cells = rowNode.getChildren(); for (int i = 0; i < cells.size(); i++) { Node cell = cells.elementAt(i); if (cell instanceof Tag) { Tag tag = (Tag) cell; tag.setAttribute("class", executionResult.toString(), '"'); } } } }
/** * If the attribute of the tag is not empty, it translates it as a separate * segment. * * @param tag * the tag object * @param key * the name of the attribute */ @Override protected void maybeTranslateAttribute(Tag tag, String key) { String attr = tag.getAttribute(key); if (attr != null) { String trans = filter.privateProcessEntry(HTMLUtils.entitiesToChars(attr), null); tag.setAttribute(key, HTMLUtils.charsToEntities(trans, filter.getTargetEncoding(), sShortcuts)); } } }
tag.setAttribute(attr, CmsEncoder.escapeXml(l)); tag.setAttribute(attr, CmsMacroResolver.formatMacro(link.getName()));
tag.setAttribute(attr, CmsEncoder.escapeXml(l)); tag.setAttribute(attr, CmsMacroResolver.formatMacro(link.getName()));
/** * If the attribute of the tag is not empty, it translates it as a separate * segment. * * @param tag * the tag object * @param key * the name of the attribute */ protected void maybeTranslateAttribute(Tag tag, String key) { String attr = tag.getAttribute(key); if (attr != null) { String comment = OStrings.getString("HTMLFILTER_TAG") + " " + tag.getTagName() + " " + OStrings.getString("HTMLFILTER_ATTRIBUTE") + " " + key; String trans = filter.privateProcessEntry(HTMLUtils.entitiesToChars(attr), comment); tag.setAttribute(key, HTMLUtils.charsToEntities(trans, filter.getTargetEncoding(), sShortcuts)); } }
if (link != null) { tag.setAttribute("background",link.getHref()); tag.setAttribute("background",link.getHref()); if (link != null) { tag.setAttribute("background",link.getHref()); tag.setAttribute("background",link.getHref());
if (link != null) { tag.setAttribute("src",link.getHref()); tag.setAttribute("src",link.getHref()); if (link != null) { tag.setAttribute("src",link.getHref()); tag.setAttribute("src",link.getHref());
if (link != null) { tag.setAttribute("src",link.getHref()); tag.setAttribute("src",link.getHref()); if (link != null) { tag.setAttribute("background",link.getHref()); tag.setAttribute("src",link.getHref());
if (link != null) { tag.setAttribute("href",link.getHref()); } else { if (this.baseUrl != null) tag.setAttribute("href",link.getHref()); if (link != null) { tag.setAttribute("href",link.getHref()); tag.setAttribute("href",link.getHref());