Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use description_html from web-features for nicer descriptions #315

Open
foolip opened this issue May 23, 2024 · 1 comment
Open

Use description_html from web-features for nicer descriptions #315

foolip opened this issue May 23, 2024 · 1 comment
Labels
enhancement New feature or request go Pull requests that update Go code typescript Pull requests that update Typescript code

Comments

@foolip
Copy link
Member

foolip commented May 23, 2024

In web-features, description is plaintext, while description_html can have <code> and other markup for improved readability.

In the case of https://webstatus.dev/features/text-wrap-balance, "text-wrap: balance" is wrapped in <code> which makes it clear that text-wrap: balance is the syntax for this.

@jcscottiii
Copy link
Collaborator

This makes sense.

I held off because we will need to implement some security features first.

First, we will want to use something like https://github.com/microcosm-cc/bluemonday to sanitize the field. (I trust web-features but want to be extra careful)

In the lit app, we can then use unsafeHTML

Also, in the frontend server, we will want to add some Content-Security-Policy header

@jcscottiii jcscottiii added enhancement New feature or request typescript Pull requests that update Typescript code go Pull requests that update Go code labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request go Pull requests that update Go code typescript Pull requests that update Typescript code
Projects
Status: No status
Development

No branches or pull requests

2 participants