Interface TextExtractor


  • @Role
    @Unstable
    public interface TextExtractor
    Component responsible for extracting plain text from inside a given String depending on the syntax associated with it. For example, the plain text could be extracted from inside an HTML content.
    Since:
    13.10RC1
    Version:
    $Id: b853ef6ba663e5317cce1858057091673bfc8000 $
    • Method Detail

      • extractText

        String extractText​(String content,
                           org.xwiki.rendering.syntax.Syntax syntax)
        Extract text from content considering the associated syntax.
        Parameters:
        content - the content from where to extract the text
        syntax - content specific syntax
        Returns:
        the plain text