Class HTMLCorrectorReplaceStrategy

java.lang.Object
de.hybris.platform.commons.corrector.strategy.HTMLCorrectorReplaceStrategy
All Implemented Interfaces:
HTMLCorrectorStrategy

public class HTMLCorrectorReplaceStrategy extends Object implements HTMLCorrectorStrategy
One of correction strategies - ReplaceStrategy that replace found in text fragments, according to replace map from properties file.
Since:
3.1u6
  • Constructor Details

    • HTMLCorrectorReplaceStrategy

      public HTMLCorrectorReplaceStrategy()
  • Method Details

    • correct

      public String correct(String htmlIn, String correctionMapFile)
      Corrects 'in' string HTML fragment according to replace strategy, and using chosen correction map file.
      Specified by:
      correct in interface HTMLCorrectorStrategy
      Parameters:
      htmlIn - HTML fragment for correction
      correctionMapFile - path to properties file with correction map.
      Returns:
      String - HTML fragment after conversion