Search code examples
htmlhtml-entities

Encoding a tab in html


I can encode a space using   in an HTML document. Is there an equivalent for the tab character?

I'm trying to preload a <textarea> with text that contains tabs, but my CMS removes any tab characters that exist in the HTML code.


Solution

  • After reviewing your edit, the answer is very simply: &#9; :)