Class Wiki2JHTMLRenderer

java.lang.Object
com.jalios.jcms.wiki.Wiki2JHTMLRenderer
All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class Wiki2JHTMLRenderer extends Object implements JcmsConstants
This class contains a set of utility static methods to process wiki text and convert it to JHTML.
Since:
jcms-10.0.0
  • Constructor Details

    • Wiki2JHTMLRenderer

      public Wiki2JHTMLRenderer()
  • Method Details

    • wiki2jhtml

      public static String wiki2jhtml(String text, Locale userLocale, WikiRenderingHints hints)
      Transform a given string formatted according the wiki text formatting rules in an JHTML string.
      Parameters:
      text - the wiki text to format. if null or empty, an empty string is immediately returned.
      userLocale - an optional (though highly recommended) Locale of the user for which the text will be generated. if null, the channel default locale will be used.
      hints - the rendering options to use, if null, the default options will be used.
      Returns:
      a JHTML formatted text.
      Since:
      jcms-10.0.0