com.atlassian.confluence.content.render.xhtml
Interface RenderedContentCleaner

All Known Implementing Classes:
PolicyConfiguredCleaner

public interface RenderedContentCleaner


Method Summary
 java.lang.String cleanQuietly(java.lang.String unclean)
          Clean the specified String.
 java.lang.String cleanStyleAttribute(java.lang.String uncleanStyle)
          Convert the supplied value of an HTML style attribute into a safe form if necessary.
 boolean isCleanUrlAttribute(java.lang.String urlValue)
          Test that the supplied value of a URL type attribute (such as href) is safe for output.
 

Method Detail

cleanQuietly

java.lang.String cleanQuietly(java.lang.String unclean)
Clean the specified String.

Parameters:
unclean - the String to be cleaned
Returns:
a cleaned version of the supplied String

cleanStyleAttribute

java.lang.String cleanStyleAttribute(java.lang.String uncleanStyle)
Convert the supplied value of an HTML style attribute into a safe form if necessary. If the result of the safety checking results in no properties remaining then it is possible that an empty String will be returned.

Parameters:
uncleanStyle - the style attribute value to be cleaned
Returns:
a cleaned version of the supplied style attribute value..

isCleanUrlAttribute

boolean isCleanUrlAttribute(java.lang.String urlValue)
Test that the supplied value of a URL type attribute (such as href) is safe for output.

Parameters:
urlValue -
Returns:
true if this attribute value can be output, otherwise false.


Copyright © 2003-2014 Atlassian. All Rights Reserved.