Class BaseTemplateModel

    • Constructor Detail

      • BaseTemplateModel

        public BaseTemplateModel()
    • Method Detail

      • cleanURIForDisplay

        protected String cleanURIForDisplay​(String dirty)
        Used to do any processing for display of URIs or URLs. If we used AntiSami on a URI it would escape any ampersands as & and perhaps do other nastiness as well. Instead we delete any character that shouldn't be in a URI.
      • cleanTextForDisplay

        protected String cleanTextForDisplay​(String dirty)
        Used to do any processing for display of general text. Currently this only checks for XSS exploits.
      • cleanMapValuesForDisplay

        protected <T> void cleanMapValuesForDisplay​(Map<T,​String> map)
        Used to do any processing for display of values in a map. Map may be modified.
      • simpleScriptStripper

        protected String simpleScriptStripper​(String dirtyInput)