Interface IEditorBbcodeService
-
- All Known Implementing Classes:
EditorBbcodeService
public interface IEditorBbcodeServiceThis Interface Provides a parser BBCODE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringparse(java.lang.String strValue)Parse BBCODE text and return safe HTML This method clean abodyfragment of HTML withSafelist.basicWithImages()java.lang.StringparseAndClean(java.lang.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 Detail
-
parse
java.lang.String parse(java.lang.String strValue)
Parse BBCODE text and return safe HTML This method clean abodyfragment of HTML withSafelist.basicWithImages()- Parameters:
strValue- the value of the text- Returns:
- HTML Text
-
parseAndClean
java.lang.String parseAndClean(java.lang.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.- 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
-
-