discourse/lib/onebox
Chema Balsas d27d7c8cca FIX: Unescapes hash section with present to account for url-encoded chars
Sections with unreserverd characters will appear url-encoded and need to
be unescaped before using it.

Wikipedia generates 2 different spans in this case in the same page, one
with an id resulting of replacing the % symbols with . and the other with
the decoded version of the string. For example, for /wiki/foo#A%C3%A1A it
will generate:

<span id="A.C3.A1A"></span>
<span id="AáA">AáA</span>

Unescaping the `m_url_hash_name` should work in all cases to target the
proper section span.
2021-08-12 10:43:50 -04:00
..
engine FIX: Unescapes hash section with present to account for url-encoded chars 2021-08-12 10:43:50 -04:00
mixins Various GitHub Onebox improvements (#13163) 2021-05-27 12:38:42 +03:00
templates UX: Tweak the timestamp line in Twitter onebox (#13551) 2021-06-28 15:04:33 +02:00
discourse_onebox_sanitize_config.rb FEATURE: Add disable_onebox_media_download_controls hidden site setting (#12208) 2021-02-25 12:39:15 +10:00
engine.rb FEATURE: Onebox can match engines based on the content_type (#13876) 2021-07-30 13:36:30 -04:00
file_type_finder.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
helpers.rb SECURITY: Onebox canonical links bypassing FinalDestination checks (#13605) 2021-07-01 20:09:29 +05:30
layout_support.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
layout.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
matcher.rb FEATURE: Onebox can match engines based on the content_type (#13876) 2021-07-30 13:36:30 -04:00
oembed.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
open_graph.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
preview.rb FIX: return an empty result if response from Amazon is missing expected attributes (#13173) 2021-06-01 16:23:18 -04:00
sanitize_config.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
status_check.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
template_support.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
view.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30