[openstreetmap/openstreetmap-website] Provide a truncated view of recent diaries (PR #5121)
David Tsiklauri
notifications at github.com
Wed Apr 2 12:31:31 UTC 2025
nertc left a comment (openstreetmap/openstreetmap-website#5121)
> If the truncation was the last step, I'd move to another module/class, which I'd use only when I need to truncate. But currently html conversion is followed by sanitize and linkify (why not first linkify then sanitize?). Can we truncate after sanitize/linkify?
@AntonKhorev Unfortunately, from what I've tested, we can't truncate after sanitize/linkify, because truncation changes HTML code and Ruby on Rails doesn't render it if it is not sanitized/linkified once more.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5121#issuecomment-2772414268
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5121/c2772414268 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250402/4dd386f4/attachment-0001.htm>
More information about the rails-dev
mailing list