Class HTMLCorrectorReplaceStrategy
java.lang.Object
de.hybris.platform.commons.corrector.strategy.HTMLCorrectorReplaceStrategy
- All Implemented Interfaces:
HTMLCorrectorStrategy
One of correction strategies - ReplaceStrategy that replace found in text fragments, according to replace map from
properties file.
- Since:
- 3.1u6
-
Field Summary
Fields inherited from interface de.hybris.platform.commons.corrector.HTMLCorrectorStrategy
BR_REPLACE_STRATEGY_MAP, REPLACE_STRATEGY -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HTMLCorrectorReplaceStrategy
public HTMLCorrectorReplaceStrategy()
-
-
Method Details
-
correct
Corrects 'in' string HTML fragment according to replace strategy, and using chosen correction map file.- Specified by:
correctin interfaceHTMLCorrectorStrategy- Parameters:
htmlIn- HTML fragment for correctioncorrectionMapFile- path to properties file with correction map.- Returns:
- String - HTML fragment after conversion
-