Documents
Extracting document content is hard. There are some filters to apply, if the response is not good enough for you:
Entrypoint
Description: Set an entrypoint node, where you want to start extracting. Use the xpath query pattern to determinate the
entrypoint.
Default: null
opendxp_content_crafter:
document:
content_extraction:
entrypoint: '*/div[@id="main-content"]'
Disallowed Tags
Description: Elements within this tag will be stripped out. Use the xpath query pattern to determinate the entrypoint.
Default: [ '//script', '//style' ]
opendxp_content_crafter:
document:
content_extraction:
disallowed_elements:
- '//script'
- '//style'
- '*/div[@id="yourTagIdHere"]'
Content with soft html tags
Description: While using the documentPageContentSoftHtml placeholder, there are some valid html tags which should be included in
the response.
Default: <h1><h2><h3><h4><h5><h6><em><strong><p><br>
opendxp_content_crafter:
document:
content_extraction:
soft_html_allowed_tags: '<h1><h2><h3><h4><h5><h6><em><strong><p><br><span>'