Arabic links problem
When sharing an item using this code
Sharing is done properly
<a target="_blank" title="<?php echo osc_esc_html(__('Share this ad with your friends', 'eva')); ?>" href="
https://api.whatsapp.com/send?text=<?php echo osc_item_url(); ?>" class="whatsapplink hideweb">
</a>
It Link like this
http://localhost/47/حلويات-sweet-soft
And when sharing the same code, but inside a script
The links appear like this
$(function () {
$('#support').floatingWhat({
phone: '<?php echo $mobile; ?>',
popupMessage: '<?php _e('Hello, how can we help you?', 'eva'); ?>',
message: "<?php _e('Merhaba, with a number', 'eva'); ?>{<?php _e(' '); echo osc_item_id ();_e(' '); ?>}
<?php echo osc_item_url(); ?>",
showPopup: true,
showOnIE: false,
headerTitle: '<div style="font-size: 15px;padding: 19px 0px 0px 0px;"<i style="color: #bbbbbb;" class="fa fa-user-circle fa-3x" aria-hidden="true"></i> <?php echo osc_item_contact_name(); ?></div>'
});
})
It link like this
http://localhost/47/%d8%ad%d9%84%d9%88%d9%8a%d8%a7%d8%aa-sweet-softI don't know what's the problem
thank you