public String decodeFormattedTextAttribute(Element element, String baseAttributeName) { String ret; // first check if an HTML-encoded attribute exists, for example "foo-html", and use it if available ret = StringUtils.trimToNull(Xml.decodeAttribute(element, baseAttributeName + "-html")); if (ret != null) return ret; // next try the older kind of formatted text like "foo-formatted", and convert it if found ret = StringUtils.trimToNull(Xml.decodeAttribute(element, baseAttributeName + "-formatted")); ret = convertOldFormattedText(ret); if (ret != null) return ret; // next try just a plaintext attribute and convert the plaintext to formatted text if found // convert from old plaintext instructions to new formatted text instruction ret = Xml.decodeAttribute(element, baseAttributeName); ret = convertPlaintextToFormattedText(ret); return ret; }
if ("BASE64".equalsIgnoreCase(enc)) value = decodeAttribute(element, "value");
if (m_description == null) m_description = StringUtils.trimToNull(Xml.decodeAttribute(el, "description-enc"));
if ("BASE64".equalsIgnoreCase(enc)) value = Xml.decodeAttribute(element, "value");
creatorId = Xml.decodeAttribute(element4, "CHEF:creator"); modifierId = Xml.decodeAttribute(element4, "CHEF:modifiedby");
creatorId = Xml.decodeAttribute(element4, "CHEF:creator"); modifierId = Xml.decodeAttribute(element4, "CHEF:modifiedby");
m_html_body = Xml.decodeAttribute(el, "body-html"); m_body = Xml.decodeAttribute(el, "body");
String subject = Xml.decodeAttribute(msgChildEl, "subject"); String body = Xml.decodeAttribute(msgChildEl, "body"); msgs.add(new org.sakaiproject.email.impl.DigestMessage(m_id, subject, body));
String creatorId = Xml.decodeAttribute(element3, "value"); if (!userListAllowImport.contains(creatorId)) goAhead = false;
String creatorId = Xml.decodeAttribute(element6, "value"); if (!userListAllowImport.contains(creatorId)) goAhead = false;
String body = Xml.decodeAttribute(root, "body");
if (tmpDesc == null) tmpDesc = StringUtils.trimToNull(Xml.decodeAttribute(el, "description-enc")); if (tmpShortDesc == null) tmpShortDesc = StringUtils.trimToNull(Xml.decodeAttribute(el, "short-description-enc"));