I would – however – use a text expansion tool here (aText, Typinator, TextExpander, …) to expand this line after pressing e.g. pmid# and automatically putting in the content of your clipboard (the PubMed-ID) at the chosen location.
I was wondering how I could get out of one variable two lines at the same time ?
variable (input):
XXXXXXXX
it should be replaced by the following line (result):
<p>Share PMID via Email:<a href="mailto:?body=https%3A%2F%2Fpubmed.ncbi.nlm.nih.gov%2FXXXXXX%2F">Forward</a>
<p>Share PMID via WhatsApp:<a href="https://api.whatsapp.com/send?text=https%3A%2F%2Fpubmed.ncbi.nlm.nih.gov%2FXXXXXX%2F">Forward</a>35138026%2F">Share via WhatsApp</a>
Thank you so much again !
Best
Jack