textValue = trimAndReplace(textValue, getTrim(el), getReplace(el));
textValue = trimAndReplace(textValue, getTrim(el), getReplace(el)); textValue = trimAndReplace(textValue, getTrim(el), getReplace(el));
/** * Get an element's text content, looking for "trim" and "replace" attributes * on the element to determine whether to trim the text and/or perform * system property substitution. * * @param element the element * @return the concatentation of the text nodes * @throws Exception for any error */ public static String getElementTextContent(Element element) throws Exception { boolean replace = getReplace(element); boolean trim = getTrim(element); String rawText = getRawElementTextContent(element); return trimAndReplace(rawText, trim, replace); }
/** * Get an <code>attribute</code> element's text content, looking for "trim" and "replace" attributes * on the element to determine whether to trim the text and/or perform * system property substitution. * * @param element the element * @return the concatentation of the text nodes * @throws Exception for any error */ public static String getElementTextContent(Element element) throws Exception { boolean replace = getReplace(element); boolean trim = getTrim(element); String rawText = getRawElementTextContent(element); return trimAndReplace(rawText, trim, replace); }