We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using the EmailShareButton component body but i can't seem to bold the text.. its outputting [object Object] instead..
const body = <strong>Heading</strong> + '\n' + job?.description.replace(/<[^>]*>?/gm, '').replace(' ', ' ').slice(0, 100) + '... \n\n';
<strong>Heading</strong>
EmailShareButton url={${siteUrl}/${urlPrefix}/${post?.url_slug}} subject={'Our website | ' + post?.title} body={body} >
${siteUrl}/${urlPrefix}/${post?.url_slug}
The text was updated successfully, but these errors were encountered:
Did you find any solution?
Sorry, something went wrong.
No, since the EmailShareButton just generates a mailto link with the body as a parameter. HTML tags are not supported.
EmailShareButton
mailto
next-share/src/components/buttons/EmailShareButton.ts
Lines 10 to 16 in e7b23a1
https://stackoverflow.com/a/21010507/7922166
No branches or pull requests
I'm using the EmailShareButton component body but i can't seem to bold the text.. its outputting [object Object] instead..
const body =
<strong>Heading</strong>
+ '\n' +job?.description.replace(/<[^>]*>?/gm, '').replace(' ', ' ').slice(0, 100) + '... \n\n';
EmailShareButton
url={
${siteUrl}/${urlPrefix}/${post?.url_slug}
}subject={'Our website | ' + post?.title}
body={body} >
The text was updated successfully, but these errors were encountered: