8

This should be pretty straight forward.... I would like the placeholder text in a textarea to display quotation marks. As in "HELLO".

I tried the usually-reliable "\"Hello\"" but that doesn't work.... it outputs simply \ because it sees that contained between opening and closing quotes.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
Paul Clift
  • 169
  • 8
  • Possible duplicate of [How to properly escape quotes inside html attributes?](https://stackoverflow.com/questions/4015345/how-to-properly-escape-quotes-inside-html-attributes) – Quentin Dec 02 '18 at 17:52

1 Answers1

9

You can use " for the quotation mark symbol. For example:

<textarea name="content" placeholder="&quot;Hello&quot;"></textarea>
Omari Celestine
  • 1,405
  • 1
  • 11
  • 21