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

API Type Description Swagger Link
/html/{name}/fragments/css/{outFormat} GET Return list of HTML fragments matching the specified CSS selector GetDocumentFragmentsByCSSSelector
/html/fragments/css/{outFormat} GET Return list of HTML fragments matching the specified CSS selector by the source page URL GetDocumentFragmentsByCSSSelectorByUrl

cURL Example