Package overit.geocall.ui.cleaner
Class TextCleaner
java.lang.Object
overit.geocall.ui.cleaner.Cleaner
overit.geocall.ui.cleaner.TextCleaner
- All Implemented Interfaces:
Serializable
This class implements the
Cleaner object that performs the strongest type of sanitization,
ie the one that considers the whole text as simple plain text. Any formatting or html code,
whether active or passive, will not be considered and therefore will have no effect.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionQuotes the string passed as parameter to stop browser interpretation.safeCopy()Returns the instance of TextCleaner in fact the cleaning methodology of this kind of Cleaner is thread safeThe string is returned as is, beacuse there's no need to sift the string.
-
Constructor Details
-
TextCleaner
protected TextCleaner()
-
-
Method Details
-
safeCopy
Returns the instance of TextCleaner in fact the cleaning methodology of this kind of Cleaner is thread safe -
sift
The string is returned as is, beacuse there's no need to sift the string. All the work is done quoting symbols -
quote
Quotes the string passed as parameter to stop browser interpretation. Each character < , \ , ' and " is quoted, that is, replaced with the corresponding html number; in this way these characters are considered as simple characters and put on screen as they are, and are not treated as html code.
This allows avoiding the insertion of any malicious active html code.
-