Move Glossify tip sanitizing to theme function

Created on 11 October 2018, over 5 years ago
Updated 11 October 2023, 9 months ago

In order to to use HTML in tips, the sanitizeTip() method needs to be optional. I considered adding a config option, but I think it works better to move the sanitize and truncate into the theme so that themers can do what they need to do. This allows doing the cool stuff in the Tippy library. Also, it makes sense as a theme function because to make use of an HTML tip the twig templates need to be overriden and modified to use something like data-tippy-content="{{ tip }}" .

✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States awolfey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024