cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2 Pass CMS Block data to API in Json format by extracting data from Html tags

Magento2 Pass CMS Block data to API in Json format by extracting data from Html tags

Magento2 I have created a CMS Block with HTML data inside, with tags like Ul Li etc.. In this li tags I have added new tags like <li type="XYZ" title="ABC" />, Now I need to send this data/value of title & type when a user call a CUSTOM API in Json format.

Can someone please guide me how to achieve this?