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
Modifier and TypeMethodDescriptionlistAllParagraphs(String content) Extract the list of valid paragraphs detected in the provided HTML content.
-
Method Details
-
listAllParagraphs
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.
-