Use CGI.escape for whatsapp title sharing
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<% end %>
|
||||
<div class="social-share-full">
|
||||
<%= social_share_button_tag("#{title} #{setting['twitter_hashtag']}") %>
|
||||
<a href="whatsapp://send?text=<%= title.gsub(/\s|"|'/, '%20') %> <%= url %>"
|
||||
<a href="whatsapp://send?text=<%= CGI.escape(title) %> <%= url %>"
|
||||
class="show-for-small-only" data-action="share/whatsapp/share">
|
||||
<span class="icon-whatsapp whatsapp"></span>
|
||||
<span class="show-for-sr"><%= t("social.whatsapp") %></span>
|
||||
|
||||
Reference in New Issue
Block a user