[openstreetmap/openstreetmap-website] Improve data browser to handle multiple links (#1841)

Tom Hughes notifications at github.com
Thu Apr 26 11:37:58 UTC 2018

Actually I think this is hard - the browser has no knowledge of the tags here. It just applies a generic linkification algorithm to the text, and the combined text is a valid link here.

This is especially true of the example you gave where the key is a note and the value is not expected to be structured in any way - it could just be text with one or more links embedded in it.

It's more likely to be possible for keys which are known to take URLs as values, as we could then just split the URL on semicolon and linkify the results.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180426/f0883e96/attachment.html>

More information about the rails-dev mailing list