Package com.adobe.cq.dam.cfm.content
Interface ComponentHelperService
-
public interface ComponentHelperService
Provides a helper for shared logic in content fragment component implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>
listAllParagraphs(java.lang.String content)
Extract the list of valid paragraphs detected in the provided HTML content.
-
-
-
Method Detail
-
listAllParagraphs
java.util.List<java.lang.String> listAllParagraphs(java.lang.String content)
Extract the list of valid paragraphs detected in the provided HTML content. Usually returned by renderer.
- Parameters:
content
- The rendered HTML containing paragraph elements (i.e p, h1, h2, h3, h4, h5, h6).- Returns:
- A list representing the paragraph elements html snippets in the natural appearing order.
-
-