[openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)
mmd
notifications at github.com
Mon Jul 21 08:37:25 UTC 2025
mmd-osm left a comment (openstreetmap/openstreetmap-website#6192)
I think I need a DOMParser for this task. Something like:
```javascript
let parser = new DOMParser();
let doc = parser.parseFromString(detailMessage, 'text/html');
detailMessage = doc.body ? doc.body.textContent.trim() : "(unknown)";
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6192#issuecomment-3095737659
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6192/c3095737659 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250721/2776d9fd/attachment.htm>
More information about the rails-dev
mailing list