HTML Tags for Editor
We only support a very strict subset of HTML. You can achieve different display effects by wrapping multiple layers of tags. Unsupported tags and all contents wrapped by it will be deleted.
Standard HTML Tags
All attributes for standard html tags will be removed by default, except for the attributes allowed in the list below.
a
Only attribute href allowed.
Example: <a href="https://google.com">Google</a>
img
Only attribute src allowed. And only uploaded images allowed
Example: <img src="attach:6139894f5b3c7a09b7951b85_720_350_35602.jpeg"/>
font
Only attribute color allowed.
Example: <font color="red">Red color text</font>
code
Basically inherited from the standard code tag, here are some common examples.
Simple inline code.
Example: <code>var foo = 1024;</code>
You may need to use it with the literal tag to output the raw content in the code tag as is.
Example: <code><literal>Your Code Here</literal></code>
Wrap a pre tag to preserves both spaces and line breaks.
Example: <pre><code><literal>Your Code Here</literal></code></pre>
Wrap a p tag to display as a block.
Example: <p><pre><code><literal>Your Code Here</literal></code></pre></p>
Code color to blue.
Example: <p><pre><code><font color="blue"><literal>Your Code Here</literal></font></code></pre></p>
Special HTML Tags
align
Specifies the horizontal alignment of text in an element.
Example 1, aligns the text to the left:
<align dir="left">Left</align>
Example 2, aligns the text to the right:
<align dir="right">Right</align>
Example 3, centers the text:
<align dir="center">Center</align>
Example 4, stretches the lines so that each line has equal width (like in newspapers and magazines):
<align dir="justify">Justify</align>
spoiler
Set text as spoiler.
Example: <spoiler>In the end they lived a happy life</spoiler>
literal
Skip compilation for all its children. You can use this for displaying raw html tags.
Example 1: <literal>code is: <b>Bold Text</b></literal>
Example 2, use with pre tag: <pre><literal>Bold: <b>Bold Text</b>
Underline: <u>Bold Text</u></literal></pre>
Example 2, use with code tag: <code><literal>Bold: <b>Bold Text</b>
Underline: <u>Bold Text</u></literal></code>
HTML Entities & Symbols
Insert a space
For a full list, please go to HTML Entity Reference.
Insert a smiley emoji
😀
For a full list, please go to HTML Emoji Reference.