code: public static String elementSettingTagAction(
          String setting,
          String defaultValue,
          boolean escape,
          ServletRequest req) {
  
          String value = elementSettingTagAction(req).get(setting);
          if (value == null) {
              value = defaultValue;
          }
          if (escape) {
              // HTML escape the value
              value = CmsEncoder.escapeHtml(value);
          }
          return value;
      }
docs: Internal action method.<p>
  
  @param setting the setting to look up
  @param defaultValue the default value
  @param escape if the result String should be HTML escaped or not
  @param req the current request
  
  @return the value of the element setting or <code>null</code> if not found