Open Abdur-rahmaanJ opened 3 years ago
Wa`alaykum ussalam warahmatullah
Thank you for your message. For the hadith text field, I believe we have separate HTML and text-only fields. We may have neglected to do this for chapters.
@hasankhan Can we strip HTML tags from the returned chapter title and intro field? Or have HTML and non-HTML versions? Sometimes those fields contain hyperlinks to Qur'anic ayat.
Jzkl for addressing issue!
@ahadith yes we can. I'll take a look insha'Allah
Aslm,
saw that on this query: https://api.sunnah.com/v1/collections/bukhari/books/1/chapters?limit=50&page=1 you receive among the response:
for the intro part, should api not return html-less data? What if someone is using the API for a commandline application? He won't need HTML. Or what if the user expects only the text and the
<p>
messes with his UI?