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/c2772414...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev