Closed richard015ar closed 3 years ago
@SteelWagstaff should I include the anchor links allowed with the new sanitization?
From: https://github.com/pressbooks/pressbooks/pull/2099
We know short descriptions allows HTML elements. We don't want links or raw a
tags in the book cards. I will implement some kind of sanitization for those cases.
If there are some URL in the short description, keep it as a string rather tan convert to a link.
Tested and works as expected on dev and staging networks network.
Some books have 'short descriptions' but no 'long descriptions' entered in their BookInfo page. Where true, we should display the short description ('disambiguatingDescription') as the Description on that item's book card in the Directory.![Screenshot from 2021-02-26 10-37-23](https://user-images.githubusercontent.com/13485451/109341022-a48d2e80-781e-11eb-93da-42316a6997cd.png)