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

Render HTML for summaries #968

Closed
wants to merge 1 commit into from
Closed

Conversation

psilabs-dev
Copy link
Contributor

Support HTML rendering features for displaying summaries, such as new lines, font styles, hyperlinks, etc. Should be backwards compatible with text rendering.

There are some security concerns, mainly if scripts are found in the summary. In case one archive points to metadata containing a malicious summary. I think how to resolve this is up for debate; whether to sanitize client-side or server-side or both. But I think this would be a better visual experience.

not too familiar with JS

image

@Difegue
Copy link
Owner

Difegue commented Apr 20, 2024

Yeah I explicitly disabled this for security concerns; I'd rather not encourage people putting html in their summaries either since it means third-party clients would also need to parse/render HTML which is a massive can of worms.

Maybe markdown would be an acceptable in-between, but that still brings a burden of support on everyone.. Open to discussion tho

@Difegue Difegue closed this Apr 20, 2024
@psilabs-dev
Copy link
Contributor Author

Fair enough. Pixiv illustration summaries use html so I'm more motivated to push this haha

There are some ways to address those issues, let's just put a pin in this for now

@psilabs-dev psilabs-dev deleted the dev-summary branch May 4, 2024 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants