Class RichTextContentService
- java.lang.Object
-
- fr.paris.lutece.portal.service.editor.RichTextContentService
-
public class RichTextContentService extends java.lang.ObjectService pour gérer le contenu de texte enrichi.
-
-
Constructor Summary
Constructors Constructor Description RichTextContentService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetContent(java.lang.String content)Récupère le contenu en fonction de son type (Markdown, BBCode ou texte brut).
-
-
-
Method Detail
-
getContent
public static java.lang.String getContent(java.lang.String content) throws RichTextParsingExceptionRécupère le contenu en fonction de son type (Markdown, BBCode ou texte brut).- Parameters:
content- Le contenu à traiter.- Returns:
- Le contenu converti en HTML si nécessaire, ou le contenu original.
- Throws:
RichTextParsingException
-
-