Kruzya
Well-known member
- Affected version
- 2.2.11
As said in title, when we use
Simple example:
Produces the next HTML (copied from browser after handling by JS-code):
This may be caused because result of calling macro
{$value}
in Wrapper display HTML, it may contains tabs when output.Simple example:
HTML:
<a href="https://t.me/{$value}" target="_blank">Open chat in Telegram</a>
<a data-xf-init="copy-to-clipboard tooltip"
class="is-hidden"
title="Copy"
data-copy-text="{$value}">
<i class="far fa-clone" aria-hidden="true"></i>
</a>
Produces the next HTML (copied from browser after handling by JS-code):
HTML:
<a href="https://t.me/
crazyhackgut
" target="_blank">Open chat in Telegram</a>
<a data-xf-init="copy-to-clipboard tooltip" class="" data-copy-text="
crazyhackgut
" data-original-title="Copy" aria-label="Copy" id="js-XFUniqueId6">
<i class="far fa-clone" aria-hidden="true"></i>
</a>
This may be caused because result of calling macro
custom_fields_macros::custom_field_value
in custom_fields_macros::custom_fields_values
isn't trimmed.