Class EditorBbcodeService
java.lang.Object
fr.paris.lutece.portal.service.editor.EditorBbcodeService
- All Implemented Interfaces:
IEditorBbcodeService
This class Provides a parser BBCODE
-
Method Summary
Modifier and TypeMethodDescriptionstatic IEditorBbcodeServiceDeprecated, for removal: This API element is subject to removal in a future version.Parse BBCODE text and return safe HTML This method clean abodyfragment of HTML withSafelist.basicWithImages()parseAndClean(String strValue, org.jsoup.safety.Safelist safelist) Parses the input string using BBCodeUtil.parse() and cleans the resulting HTML using Jsoup.clean() with the specified Safelist, and returns the cleaned string.
-
Method Details
-
parse
Parse BBCODE text and return safe HTML This method clean abodyfragment of HTML withSafelist.basicWithImages()- Specified by:
parsein interfaceIEditorBbcodeService- Parameters:
strValue- the value of the text- Returns:
- HTML Text
-
parseAndClean
Parses the input string using BBCodeUtil.parse() and cleans the resulting HTML using Jsoup.clean() with the specified Safelist, and returns the cleaned string.- Specified by:
parseAndCleanin interfaceIEditorBbcodeService- Parameters:
strValue- the input string to be parsed and cleanedsafelist- the Safelist to be used for cleaning the HTML- Returns:
- the cleaned and sanitized string
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Use@Injectto obtain theEditorBbcodeServiceinstance. This method will be removed in future versions.Returns the unique instance of theEditorBbcodeServiceservice.This method is deprecated and is provided for backward compatibility only. For new code, use dependency injection with
@Injectto obtain theEditorBbcodeServiceinstance instead.- Returns:
- The unique instance of
EditorBbcodeService.
-
@Injectto obtain theEditorBbcodeServiceinstance.