mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 05:50:14 +08:00
d27d7c8cca
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. |
||
---|---|---|
.. | ||
engine | ||
mixins | ||
templates | ||
discourse_onebox_sanitize_config.rb | ||
engine.rb | ||
file_type_finder.rb | ||
helpers.rb | ||
layout_support.rb | ||
layout.rb | ||
matcher.rb | ||
oembed.rb | ||
open_graph.rb | ||
preview.rb | ||
sanitize_config.rb | ||
status_check.rb | ||
template_support.rb | ||
view.rb |