/** * Applys placeholders to a string. Mostly useful for components that need to handle strings in * some other way than simply outputting XHTML (e.g. include string in a graphc). * * @param sValue Original string * @return String with any placeholders applied */ public String applyPlaceholders(String sValue) { return XML.replaceTokens(sValue, "__", mPlaceholders); }
/** * Fix placeholders just before returning output. * * @param r Output about to be returned */ private void fixPlaceholders(Rendering r) { XML.replaceTokens(r.getXHTML(), "__", mPlaceholders); }