<div><p>Hello JSoup - this is now a CQ service.</p></div>
Once you pass this HTML to the custom AEM HTML parser service, you can get the value of the <p> tag, as shown in the following illustration.
An AEM web page that parses HTML by calling the custom HTML parser service
To create a custom AEM HTML parser service, you can use the JSOUP library. That is, the application logic required to parse HTML is developed by using the JSOUP API. For information about this API, see:
http://jsoup.org/
The Java logic that parses HTML is implemented as an OSGi bundle that is built using Declarative Services (DS) and Maven. The OSGi bundle is a managed component, which means that the OSGi service container creates the OSGi instance.
To read this development article, click http://helpx.adobe.com/experience-manager/using/html-parser-service.html.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.