xxxxxxxxxx
<a href="whatsapp://send?text=The text to share!" data-action="share/whatsapp/share">Share via Whatsapp</a>
xxxxxxxxxx
<a href="https://api.whatsapp.com/send?text=www.google.com" data-action="share/whatsapp/share">Share via Whatsapp web</a>
xxxxxxxxxx
<!-- For opening in web app -->
<a href="https://web.whatsapp.com/send?text=The text to share" target="_blank">Share</a>
<!-- For opening in mobile app -->
<a href="https://api.whatsapp.com/send?text=The text to share" target="_blank">Share</a>
xxxxxxxxxx
<a href="whatsapp://send?text=The text to share!" data-action="share/whatsapp/share">Share via Whatsapp</a>