19

Now as WhatsApp offers options for bold, Italic & strike-through text, how not to make the text bold while still enclosing it in *. Any kind of escape character?

For example: *test* will result in test (bold).

I want to send a phone-recharge number as *127*123456789#, but it goes as 127123456789# (127 as bold). Is there any escape character to keep * as * instead of it making text bold?

32

You could send it as code using three back-ticks, similar to formatting code here on StackExchange:

*word* = word

```*word*``` = *word*

(Note: it will use a monospace font).

  • 1
    Yes, visually it goes as intended, thanks, upvoted. But the text does not gets recognized as a dial-able number, and once copied, the backticks also gets copied. – DavChana Jan 8 '17 at 20:46
  • 1
    Hmm, that's awkward. Oh well, hopefully help in other cases. – Leo Jan 8 '17 at 20:50
  • 3
    Yes very helpful in other cases. – Lokesh Jul 4 '17 at 8:56
9

Excerpt from the official WhatsApp FAQ:

Note: There is no option to disable this feature.

See https://www.whatsapp.com/faq/en/general/26000002

  • 2
    Wrong. Surrounding with three ``` Disables. Syntax is ``` any text *not will format * ``` – Sergio Abreu Jun 15 '17 at 9:31
  • But this does not disable formatting, it just monospaces the text and therefore no other style is applied. – Ercksen Mar 14 at 10:32
4

I suggest you quote it instead. '*245*648464885838#'

2

You could add a space between the asterisk and the word, like * that *

0

You could double the character, such as **text**, the word text will be bold, but the asterisk will remain.

  • 2
    No.. using double ** will not bold the text and it will go like ** text **. – serenesat Jun 10 '16 at 6:56
  • @serenesat You're wrong. This works. Only difference is everything is bolded except the last asterisk. – Neo Aug 10 at 12:49
  • @Neo Read the question again. OP wants output as *text* but if you use **text**, the output will be in bold with asterisk also in bold, which doesn't answer the question completely. You need to test it in WhatsApp. Also, my comment was before answer get edited. – serenesat Aug 12 at 8:27
  • @serenesat My comment has nothing to do with the question. I am replying to your comment to an answer. And saying "using double ** will not bold the text and it will go like ** text **" is simply incorrect because that sentence is not true regardless of whatever context you put it in. The answer being edited is irrelevant here, because your comment implies you clearly understood the original answer's intent before the typo was corrected. – Neo Aug 12 at 12:51
  • @Neo It's been 2 years, I do not comment or answer without testing. Something might have changed. I don't remember exactly, so no point of argument. – serenesat Aug 13 at 9:23
0

Extended from this answer, you can prefix the first * with a Zero Width Joiner character. So the text will be verbatim, with no extra visible space and with the standard font.

[Paste ZWJ here]*127*123456789#

It's working on Android but it may not work on iOS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.