Get HTML fragments using CSS Selector

Introduction

This article explain how to get the HTML fragments from the HTML document that match the specified CSS selector. Aspose.HTML Cloud provide two APIs to get the list of HTML fragments:

API Information

APITypeDescriptionSwagger Link
/html/{name}/fragments/css/{outFormat}GETReturn list of HTML fragments matching the specified CSS selectorGetDocumentFragmentsByCSSSelector
/html/fragments/css/{outFormat}GETReturn list of HTML fragments matching the specified CSS selector by the source page URLGetDocumentFragmentsByCSSSelectorByUrl

cURL Example